preallocated slices (#934)
This commit is contained in:
committed by
Asim Aslam
parent
c696a859be
commit
5ae3e179b9
@@ -111,7 +111,7 @@ func (m *Registry) ttlPrune() {
|
||||
}
|
||||
|
||||
func (m *Registry) sendEvent(r *registry.Result) {
|
||||
var watchers []*Watcher
|
||||
watchers := make([]*Watcher, 0, len(m.Watchers))
|
||||
|
||||
m.RLock()
|
||||
for _, w := range m.Watchers {
|
||||
|
Reference in New Issue
Block a user