diff --git a/storage/watchable_store.go b/storage/watchable_store.go index 09b5b5ff2..ebad2a64d 100644 --- a/storage/watchable_store.go +++ b/storage/watchable_store.go @@ -385,8 +385,9 @@ func unsafeAddWatching(synced *map[string]map[*watching]struct{}, k string, wa * } else { v[wa] = struct{}{} } - + return nil } + mp[k] = make(map[*watching]struct{}) mp[k][wa] = struct{}{} return nil