From afac937980c1f559016952ab1836c9e0da4a7481 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Wed, 3 May 2023 14:07:43 +0200 Subject: [PATCH] fix: actually remove keys instead of zeroing them --- database/database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/database.go b/database/database.go index ec4f83d..28b1ae4 100644 --- a/database/database.go +++ b/database/database.go @@ -156,8 +156,8 @@ func (mod *LocalDBClient) PutJSONBulk(kvs map[string]any) error { } func (mod *LocalDBClient) RemoveKey(key string) error { - // TODO - return mod.PutKey(key, "") + _, err := mod.makeRequest(kv.CmdRemoveKey, map[string]any{"key": key}) + return err } func (mod *LocalDBClient) makeRequest(cmd string, data map[string]any) (kv.Response, error) {