diff options
author | Valery Piashchynski <[email protected]> | 2021-06-14 16:39:02 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-14 16:39:02 +0300 |
commit | 75ab1e16c64cfd0a6424fe4c546fdbc5e1b992dd (patch) | |
tree | 1e9a910071d20021ad0f7ef4fe6099bac6a341ef /tests/plugins/redis | |
parent | dc8ed203c247afd684f198ebbac103a10bfad72a (diff) |
- Rework redis with ws plugins
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/redis')
-rw-r--r-- | tests/plugins/redis/plugin1.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/plugins/redis/plugin1.go b/tests/plugins/redis/plugin1.go index e50213e5..68da1394 100644 --- a/tests/plugins/redis/plugin1.go +++ b/tests/plugins/redis/plugin1.go @@ -14,8 +14,10 @@ type Plugin1 struct { } func (p *Plugin1) Init(redis redisPlugin.Redis) error { - p.redisClient = redis.GetClient() - return nil + var err error + p.redisClient, err = redis.RedisClient("redis") + + return err } func (p *Plugin1) Serve() chan error { |