From 9f908ce67f91c6ef0214b567357f2100df7d1e23 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 1 Dec 2015 14:55:20 -0800 Subject: [PATCH] storage: add missing return for unsafeAddWatching --- storage/watchable_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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