Fix panic from closing the input channel before the workers complete (it'll get GC'd either way)

This commit is contained in:
Neil Alexander 2022-02-02 17:46:37 +00:00
parent 2a5c38fee2
commit 4d9f5b2e57
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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()