mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Fix panic from closing the input channel before the workers complete (it'll get GC'd either way)
This commit is contained in:
parent
2a5c38fee2
commit
4d9f5b2e57
1 changed files with 0 additions and 1 deletions
|
@ -161,7 +161,6 @@ func (r *Inputer) InputRoomEvents(
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
responses := make(chan error, len(request.InputRoomEvents))
|
responses := make(chan error, len(request.InputRoomEvents))
|
||||||
defer close(responses)
|
|
||||||
for _, e := range request.InputRoomEvents {
|
for _, e := range request.InputRoomEvents {
|
||||||
inputRoomEvent := e
|
inputRoomEvent := e
|
||||||
roomID := inputRoomEvent.Event.RoomID()
|
roomID := inputRoomEvent.Event.RoomID()
|
||||||
|
|
Loading…
Reference in a new issue