mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
pkg/watch: remove test hook
This commit is contained in:
@@ -115,13 +115,10 @@ func (m *Mux) loop() {
|
||||
m.closeAll()
|
||||
}
|
||||
|
||||
var testHookMuxDistribute = func() {}
|
||||
|
||||
// distribute sends event to all watchers. Blocking.
|
||||
func (m *Mux) distribute(event Event) {
|
||||
m.lock.Lock()
|
||||
defer m.lock.Unlock()
|
||||
testHookMuxDistribute()
|
||||
for _, w := range m.watchers {
|
||||
select {
|
||||
case w.result <- event:
|
||||
|
Reference in New Issue
Block a user