mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-18 01:50:50 +00:00
fix: actually remove keys instead of zeroing them
This commit is contained in:
parent
6159836472
commit
afac937980
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue