aboutsummaryrefslogtreecommitdiffstats
path: root/http/http.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-12-27 15:16:17 +0100
committerMartin Polden <mpolden@mpolden.no>2019-12-27 15:16:17 +0100
commitd6783170e9cbb38aa6b39d9ad66187315193dae0 (patch)
tree222433497e202fdefe412cdfb108f9064e0a894c /http/http.go
parent573a2c2528e744d76a7fbd7a00f653f4a1710640 (diff)
Use TODO context
Diffstat (limited to 'http/http.go')
-rw-r--r--http/http.go2
1 files changed, 1 insertions, 1 deletions
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 {