1
0
Fork 0

Don't lock around appending to subscribers list

This commit is contained in:
Gregory Eremin 2014-09-24 16:26:22 +04:00
parent f29268776b
commit 922b3fc009
1 changed files with 0 additions and 2 deletions

View File

@ -54,9 +54,7 @@ func (h *Hub) Sub(s *Subscription) {
}
}
h.lock.Lock()
h.subscribers = append(h.subscribers, s)
h.lock.Unlock()
}
func (h *Hub) Info() map[string]map[string]uint {