From d6783170e9cbb38aa6b39d9ad66187315193dae0 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 27 Dec 2019 15:16:17 +0100 Subject: Use TODO context --- http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/http.go') diff --git a/http/http.go b/http/http.go index 1a983e8..a17fb7c 100644 --- a/http/http.go +++ b/http/http.go @@ -142,7 +142,7 @@ func (s *Server) logHandler(w http.ResponseWriter, r *http.Request) (interface{} } // Close shuts down the HTTP server. -func (s *Server) Close() error { return s.server.Shutdown(context.Background()) } +func (s *Server) Close() error { return s.server.Shutdown(context.TODO()) } // ListenAndServe starts the HTTP server listening on the configured address. func (s *Server) ListenAndServe() error { -- cgit v1.2.3