Xiang Li 12 years ago
parent
commit
ce33c4d29f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      store/watcher.go

+ 3 - 3
store/watcher.go

@@ -124,10 +124,10 @@ func (w *WatcherHub) notify(resp Response) error {
 // stopWatchers stops all the watchers
 // This function is used when the etcd recovery from a snapshot at runtime
 func (w *WatcherHub) stopWatchers() {
-	for _, subWatchers := range w.watchers{
-		for _, watcher := range subWatchers{
+	for _, subWatchers := range w.watchers {
+		for _, watcher := range subWatchers {
 			watcher.C <- nil
 		}
 	}
 	w.watchers = nil
-}
+}