From 3183a465d71a13535e52589bb85b987176872fcd Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 31 May 2021 07:18:11 +0100 Subject: Make modules/context.Context a context.Context (#16031) * Make modules/context.Context a context.Context Signed-off-by: Andrew Thornton * Simplify context calls Signed-off-by: Andrew Thornton * Set the base context for requests to the HammerContext Signed-off-by: Andrew Thornton Co-authored-by: Lunny Xiao --- routers/events/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/events') diff --git a/routers/events/events.go b/routers/events/events.go index 2c1034038f..b140bf660c 100644 --- a/routers/events/events.go +++ b/routers/events/events.go @@ -42,7 +42,7 @@ func Events(ctx *context.Context) { } // Listen to connection close and un-register messageChan - notify := ctx.Req.Context().Done() + notify := ctx.Done() ctx.Resp.Flush() shutdownCtx := graceful.GetManager().ShutdownContext() -- cgit v1.2.3