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/kv.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/kv.go')
-rw-r--r-- | plugins/redis/kv.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/redis/kv.go b/plugins/redis/kv.go index 5bf03af1..29f89d46 100644 --- a/plugins/redis/kv.go +++ b/plugins/redis/kv.go @@ -7,7 +7,6 @@ import ( "github.com/go-redis/redis/v8" "github.com/spiral/errors" - "github.com/spiral/roadrunner/v2/common/kv" "github.com/spiral/roadrunner/v2/plugins/config" "github.com/spiral/roadrunner/v2/plugins/logger" kvv1 "github.com/spiral/roadrunner/v2/proto/kv/v1beta" @@ -20,7 +19,7 @@ type Driver struct { cfg *Config } -func NewRedisDriver(log logger.Logger, key string, cfgPlugin config.Configurer) (kv.Storage, error) { +func NewRedisDriver(log logger.Logger, key string, cfgPlugin config.Configurer) (*Driver, error) { const op = errors.Op("new_boltdb_driver") d := &Driver{ |