Fix ordering hopefully

This commit is contained in:
Neil Alexander 2020-09-03 12:51:04 +01:00
parent 2b653f5edf
commit 3f3b4a3c08
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -137,8 +137,8 @@ func (r *Inputer) InputRoomEvents(
} }
// Send the task to the worker. // Send the task to the worker.
go func(task *inputTask) { worker.input <- task }(tasks[i])
go worker.start() go worker.start()
worker.input <- tasks[i]
} }
// Wait for all of the workers to return results about our tasks. // Wait for all of the workers to return results about our tasks.