Process remote events in their own goroutines
This commit is contained in:
parent
d97b424e98
commit
fcf61701cc
@ -315,7 +315,7 @@ func ProcessRemoteEvent(globals AsinkGlobals, event *asink.Event) {
|
|||||||
|
|
||||||
func ProcessRemoteEvents(globals AsinkGlobals, eventChan chan *asink.Event) {
|
func ProcessRemoteEvents(globals AsinkGlobals, eventChan chan *asink.Event) {
|
||||||
for event := range eventChan {
|
for event := range eventChan {
|
||||||
ProcessRemoteEvent(globals, event)
|
go ProcessRemoteEvent(globals, event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user