mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
remove lock for broadcast
This commit is contained in:
parent
f68446fed9
commit
7f9d66525a
@ -118,9 +118,7 @@ func (f *FakeEtcdClient) Watch(prefix string, waitIndex uint64, recursive bool,
|
|||||||
defer close(injectedError)
|
defer close(injectedError)
|
||||||
f.WatchInjectError = injectedError
|
f.WatchInjectError = injectedError
|
||||||
|
|
||||||
f.condLock.Lock()
|
|
||||||
f.condWatchCompleted.Broadcast()
|
f.condWatchCompleted.Broadcast()
|
||||||
f.condLock.Unlock()
|
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-stop:
|
case <-stop:
|
||||||
|
Loading…
Reference in New Issue
Block a user