1
0
Fork 0
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:
Ash Keel 2023-05-03 14:07:43 +02:00
parent 6159836472
commit afac937980
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -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) {