mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
gofmt
This commit is contained in:
parent
66f4e0aa19
commit
ce33c4d29f
@ -124,10 +124,10 @@ func (w *WatcherHub) notify(resp Response) error {
|
|||||||
// stopWatchers stops all the watchers
|
// stopWatchers stops all the watchers
|
||||||
// This function is used when the etcd recovery from a snapshot at runtime
|
// This function is used when the etcd recovery from a snapshot at runtime
|
||||||
func (w *WatcherHub) stopWatchers() {
|
func (w *WatcherHub) stopWatchers() {
|
||||||
for _, subWatchers := range w.watchers{
|
for _, subWatchers := range w.watchers {
|
||||||
for _, watcher := range subWatchers{
|
for _, watcher := range subWatchers {
|
||||||
watcher.C <- nil
|
watcher.C <- nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
w.watchers = nil
|
w.watchers = nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user