mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
remove lock for broadcast
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user