mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +00:00
event: concurrently deliver events to each TypeMuxSubscription
This commit is contained in:
parent
bf468a81ec
commit
8a6ca50919
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ func (mux *TypeMux) Post(ev interface{}) error {
|
||||||
subs := mux.subm[rtyp]
|
subs := mux.subm[rtyp]
|
||||||
mux.mutex.RUnlock()
|
mux.mutex.RUnlock()
|
||||||
for _, sub := range subs {
|
for _, sub := range subs {
|
||||||
sub.deliver(event)
|
go sub.deliver(event)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue