mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
style
This commit is contained in:
parent
fa1fbe88c1
commit
014165ded6
@ -122,10 +122,8 @@ func (f *FakeEtcdClient) Watch(prefix string, waitIndex uint64, recursive bool,
|
||||
f.WatchInjectError = injectedError
|
||||
f.nrUnreadyChannels.Done()
|
||||
|
||||
defer func() {
|
||||
// After calling this function, the WatchStop channel will not be ready
|
||||
f.nrUnreadyChannels.Add(3)
|
||||
}()
|
||||
// After calling this function, the WatchStop channel will not be ready
|
||||
defer f.nrUnreadyChannels.Add(3)
|
||||
|
||||
select {
|
||||
case <-stop:
|
||||
|
Loading…
Reference in New Issue
Block a user