diff options
author | Valery Piashchynski <[email protected]> | 2021-09-13 15:40:57 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-13 15:40:57 +0300 |
commit | 5d2cd55ab522d4f1e65a833f91146444465a32ac (patch) | |
tree | a374c8e90383d5e868ffe6b44555a55029c54f79 /plugins/memcached | |
parent | fe72d84395970281fe330a2b9423f8c0e4c3b9c8 (diff) | |
parent | b8a4b82f82e2cb9f9efc4a3601a97b4ff07fefc7 (diff) |
[#793]: fix(plugins): incorrect parsing local and global drivers sections
[#793]: fix(plugins): incorrect parsing local and global drivers sections
Diffstat (limited to 'plugins/memcached')
-rw-r--r-- | plugins/memcached/memcachedkv/driver.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/memcached/memcachedkv/driver.go b/plugins/memcached/memcachedkv/driver.go index 6d5e1802..dcb071b4 100644 --- a/plugins/memcached/memcachedkv/driver.go +++ b/plugins/memcached/memcachedkv/driver.go @@ -32,6 +32,10 @@ func NewMemcachedDriver(log logger.Logger, key string, cfgPlugin config.Configur return nil, errors.E(op, err) } + if s.cfg == nil { + return nil, errors.E(op, errors.Errorf("config not found by provided key: %s", key)) + } + s.cfg.InitDefaults() m := memcache.New(s.cfg.Addr...) |