We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01ae75 commit 95df667Copy full SHA for 95df667
memory_retention.go
@@ -40,6 +40,7 @@ func DeleteKey(key string) error {
40
41
delete(keyMap, key)
42
delete(data, key)
43
+ delete(topics, key)
44
mutex.Unlock()
45
return nil
46
}
@@ -62,6 +63,7 @@ func DeleteAnswer(key string) error {
62
63
func DeleteAll() {
64
data = make(map[string][]string)
65
keyMap = make(map[string]bool)
66
+ topics = make(map[string]string)
67
68
69
// Check if the key exists.
0 commit comments