mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Don't block on RS input API
This commit is contained in:
parent
71eebd6bc3
commit
efb9588a36
1 changed files with 13 additions and 11 deletions
|
@ -166,17 +166,19 @@ func (r *Inputer) InputRoomEvents(
|
||||||
worker.input.push(tasks[i])
|
worker.input.push(tasks[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait for all of the workers to return results about our tasks.
|
/*
|
||||||
wg.Wait()
|
// Wait for all of the workers to return results about our tasks.
|
||||||
|
wg.Wait()
|
||||||
|
|
||||||
// If any of the tasks returned an error, we should probably report
|
// If any of the tasks returned an error, we should probably report
|
||||||
// that back to the caller.
|
// that back to the caller.
|
||||||
for _, task := range tasks {
|
for _, task := range tasks {
|
||||||
if task.err != nil {
|
if task.err != nil {
|
||||||
response.ErrMsg = task.err.Error()
|
response.ErrMsg = task.err.Error()
|
||||||
_, rejected := task.err.(*gomatrixserverlib.NotAllowed)
|
_, rejected := task.err.(*gomatrixserverlib.NotAllowed)
|
||||||
response.NotAllowed = rejected
|
response.NotAllowed = rejected
|
||||||
return
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue