summaryrefslogtreecommitdiff
path: root/plugins/kv
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-01 13:19:09 +0300
committerValery Piashchynski <[email protected]>2021-09-01 13:19:09 +0300
commit9c8da162b3347b632f33f85d56e8c1ff7014631a (patch)
treebb614a186e05adf816b3f2b62e2d25bfa821a574 /plugins/kv
parent0437d1f58514f694ea86e8176e621c009cd510f9 (diff)
Code polishing before release
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/kv')
-rw-r--r--plugins/kv/plugin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/kv/plugin.go b/plugins/kv/plugin.go
index c6ca96c3..a1144b85 100644
--- a/plugins/kv/plugin.go
+++ b/plugins/kv/plugin.go
@@ -104,6 +104,10 @@ func (p *Plugin) Serve() chan error {
}
func (p *Plugin) Stop() error {
+ // stop all attached storages
+ for k := range p.storages {
+ p.storages[k].Stop()
+ }
return nil
}