mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-20 02:00:49 +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 {
|
func (mod *LocalDBClient) RemoveKey(key string) error {
|
||||||
// TODO
|
_, err := mod.makeRequest(kv.CmdRemoveKey, map[string]any{"key": key})
|
||||||
return mod.PutKey(key, "")
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mod *LocalDBClient) makeRequest(cmd string, data map[string]any) (kv.Response, error) {
|
func (mod *LocalDBClient) makeRequest(cmd string, data map[string]any) (kv.Response, error) {
|
||||||
|
|
Loading…
Reference in a new issue