summaryrefslogtreecommitdiff
path: root/plugins/kv/rpc.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-22 22:03:59 +0300
committerValery Piashchynski <[email protected]>2021-04-22 22:03:59 +0300
commit91c1fa2e2693cb662425c1ba7cca2325a8458995 (patch)
treed97791a6675678f607396af5de81143e764ca108 /plugins/kv/rpc.go
parent1e62c2afa4fe8b5bae0c26e72ae61ef6b5f0f54d (diff)
- Rework storage drivers
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/kv/rpc.go')
-rw-r--r--plugins/kv/rpc.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/kv/rpc.go b/plugins/kv/rpc.go
index cc3875e0..4947dbe3 100644
--- a/plugins/kv/rpc.go
+++ b/plugins/kv/rpc.go
@@ -216,24 +216,6 @@ func (r *rpc) Delete(in []byte, ok *bool) error {
return errors.E(op, errors.Errorf("no such storage: %s", dataRoot.Storage()))
}
-// Close closes the storage connection
-func (r *rpc) Close(storage string, ok *bool) error {
- const op = errors.Op("rpc_close")
- if st, exists := r.storages[storage]; exists {
- err := st.Close()
- if err != nil {
- return errors.E(op, err)
- }
-
- // save the result
- *ok = true
- return nil
- }
-
- *ok = false
- return nil
-}
-
func strConvert(s []byte) string {
return *(*string)(unsafe.Pointer(&s))
}