diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-12-14 14:40:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 14:40:57 +0000 |
commit | 2885eb0422267ec232150a15e7f8f713ef64a456 (patch) | |
tree | 8fbbc67f8e2f4f20211544055fdc699492a70a61 | |
parent | f5869daaab2b8135415f4ae5b2d61ac8c3037a9d (diff) |
Don't use request context for input room event queued tasks (#1640)
-rw-r--r-- | roomserver/internal/input/input.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/internal/input/input.go b/roomserver/internal/input/input.go index 6b833072..404bc742 100644 --- a/roomserver/internal/input/input.go +++ b/roomserver/internal/input/input.go @@ -116,7 +116,7 @@ func (r *Inputer) WriteOutputEvents(roomID string, updates []api.OutputEvent) er // InputRoomEvents implements api.RoomserverInternalAPI func (r *Inputer) InputRoomEvents( - ctx context.Context, + _ context.Context, request *api.InputRoomEventsRequest, response *api.InputRoomEventsResponse, ) { @@ -148,7 +148,7 @@ func (r *Inputer) InputRoomEvents( // the wait group, so that the worker can notify us when this specific // task has been finished. tasks[i] = &inputTask{ - ctx: ctx, + ctx: context.Background(), event: &request.InputRoomEvents[i], wg: wg, } |