diff options
author | Valery Piashchynski <[email protected]> | 2021-07-10 13:57:49 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-10 13:57:49 +0300 |
commit | 453eb10b436925ef91b1206e795e581e6293d132 (patch) | |
tree | 1bf08147397e2d68b7531039b989901a951c66df /plugins/redis/pubsub.go | |
parent | 435cfae06a963cce2e85384afd3946b95e4b8344 (diff) |
Return structure instead of interface in places where that possible
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/redis/pubsub.go')
-rw-r--r-- | plugins/redis/pubsub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/redis/pubsub.go b/plugins/redis/pubsub.go index 8bd78514..01efc623 100644 --- a/plugins/redis/pubsub.go +++ b/plugins/redis/pubsub.go @@ -21,7 +21,7 @@ type PubSubDriver struct { stopCh chan struct{} } -func NewPubSubDriver(log logger.Logger, key string, cfgPlugin config.Configurer, stopCh chan struct{}) (pubsub.PubSub, error) { +func NewPubSubDriver(log logger.Logger, key string, cfgPlugin config.Configurer, stopCh chan struct{}) (*PubSubDriver, error) { const op = errors.Op("new_pub_sub_driver") ps := &PubSubDriver{ log: log, |