mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 13:25:38 +08:00
committed by
Victor Vrantchan
parent
6065d1f2c9
commit
e000fec3c0
@@ -22,9 +22,11 @@ func (p *Inmem) dispatch() {
|
||||
for {
|
||||
select {
|
||||
case ev := <-p.publish:
|
||||
p.mtx.Lock()
|
||||
for _, sub := range p.subscriptions[ev.Topic] {
|
||||
go func(s subscription) { s.eventChan <- ev }(sub)
|
||||
}
|
||||
p.mtx.Unlock()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user