diff options
author | Valery Piashchynski <[email protected]> | 2021-04-30 16:30:54 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-30 16:30:54 +0300 |
commit | 009b7009885d8a15e6fa6c7e78436087b2f20129 (patch) | |
tree | 6bab1f99aa83c794060ab4c913d5ff62fef6882d /plugins/kv/drivers | |
parent | 684864530618f4b82399e5f1a89d5967c6ca9bcb (diff) | |
parent | 556477ca9df3fa2e5939057861314eabe5ce30ca (diff) |
#652 feat(informer): list of active plugins in runtime
#652 feat(informer): list of active plugins in runtime
Diffstat (limited to 'plugins/kv/drivers')
-rw-r--r-- | plugins/kv/drivers/boltdb/driver.go | 2 | ||||
-rw-r--r-- | plugins/kv/drivers/boltdb/plugin.go | 3 | ||||
-rw-r--r-- | plugins/kv/drivers/memcached/plugin.go | 3 | ||||
-rw-r--r-- | plugins/kv/drivers/memory/plugin.go | 4 |
4 files changed, 10 insertions, 2 deletions
diff --git a/plugins/kv/drivers/boltdb/driver.go b/plugins/kv/drivers/boltdb/driver.go index b596d4c3..2e2df527 100644 --- a/plugins/kv/drivers/boltdb/driver.go +++ b/plugins/kv/drivers/boltdb/driver.go @@ -401,8 +401,6 @@ func (d *Driver) startGCLoop() { //nolint:gocognit }) if err != nil { d.log.Error("error during the gc phase of update", "error", err) - // todo this error is ignored, it means, that timer still be active - // to prevent this, we need to invoke t.Stop() return false } } diff --git a/plugins/kv/drivers/boltdb/plugin.go b/plugins/kv/drivers/boltdb/plugin.go index 9d1e0dba..9b4cf9f7 100644 --- a/plugins/kv/drivers/boltdb/plugin.go +++ b/plugins/kv/drivers/boltdb/plugin.go @@ -63,3 +63,6 @@ func (s *Plugin) Provide(key string) (kv.Storage, error) { func (s *Plugin) Name() string { return PluginName } + +// Available interface implementation +func (s *Plugin) Available() {} diff --git a/plugins/kv/drivers/memcached/plugin.go b/plugins/kv/drivers/memcached/plugin.go index af59e91b..cde84f42 100644 --- a/plugins/kv/drivers/memcached/plugin.go +++ b/plugins/kv/drivers/memcached/plugin.go @@ -33,6 +33,9 @@ func (s *Plugin) Name() string { return PluginName } +// Available interface implementation +func (s *Plugin) Available() {} + func (s *Plugin) Provide(key string) (kv.Storage, error) { const op = errors.Op("boltdb_plugin_provide") st, err := NewMemcachedDriver(s.log, key, s.cfgPlugin) diff --git a/plugins/kv/drivers/memory/plugin.go b/plugins/kv/drivers/memory/plugin.go index acc6023d..2be7caae 100644 --- a/plugins/kv/drivers/memory/plugin.go +++ b/plugins/kv/drivers/memory/plugin.go @@ -62,3 +62,7 @@ func (s *Plugin) Provide(key string) (kv.Storage, error) { func (s *Plugin) Name() string { return PluginName } + +// Available interface implementation +func (s *Plugin) Available() { +} |