fix RAM driver cant delete

main
Bel LaPointe 2024-04-12 13:00:56 -06:00
parent 6ca1f83727
commit cb44dfd49d
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ func (ram RAM) Set(_ context.Context, ns, id string, v []byte) error {
ram.m[ns] = map[string][]byte{}
}
ram.m[ns][id] = v
if v == nil {
delete(ram.m[ns], id)
}
return nil
}