diff options
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,6 +5,7 @@ package kbbi import ( + "context" "fmt" "log" stdhttp "net/http" @@ -109,7 +110,7 @@ func (server *Server) Start() (err error) { // Shutdown the HTTP server and save the cache for future use. // func (server *Server) Shutdown() (err error) { - err = server.http.Shutdown(nil) + err = server.http.Shutdown(context.TODO()) server.stopped <- true |
