mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Update comments
This commit is contained in:
parent
7c9f6b5872
commit
f91b01f817
1 changed files with 3 additions and 3 deletions
|
@ -130,9 +130,9 @@ func (r *Inputer) InputRoomEvents(
|
|||
request *api.InputRoomEventsRequest,
|
||||
response *api.InputRoomEventsResponse,
|
||||
) {
|
||||
// Create a wait group. Each task that we dispatch will call Done on
|
||||
// this wait group so that we know when all of our events have been
|
||||
// processed.
|
||||
// Each of the requests will return to us on the wait channel.
|
||||
// We can also close the wait channel early if the request context
|
||||
// comes to an end, so that we don't leak goroutines.
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
count := len(request.InputRoomEvents)
|
||||
|
|
Loading…
Reference in a new issue