pkg/watch: remove test hook

This commit is contained in:
Andrew M Bursavich
2014-09-15 18:47:16 -07:00
parent 9c25792dca
commit 4e7f8db3a0
2 changed files with 12 additions and 12 deletions

View File

@@ -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: