Fix vetting code
This commit is contained in:
parent
5a88474e9a
commit
42ab4ca7b5
@ -226,11 +226,11 @@ func (d *delegate) MergeRemoteState(buf []byte, join bool) {
|
||||
func (m *gossipRegistry) publish(action string, services []*registry.Service) {
|
||||
m.s.RLock()
|
||||
for _, sub := range m.subs {
|
||||
go func() {
|
||||
go func(sub chan *registry.Result) {
|
||||
for _, service := range services {
|
||||
sub <- ®istry.Result{Action: action, Service: service}
|
||||
}
|
||||
}()
|
||||
}(sub)
|
||||
}
|
||||
m.s.RUnlock()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user