diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-04-12 04:42:45 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-04-12 04:42:45 +0700 |
| commit | 8e2aaf2df151f61a874bb7a62929afb005fa2abd (patch) | |
| tree | 3497f604013d52b7f9a3c38335cf77661b388c44 /server.go | |
| parent | 9cf57fc952e4161c8e7fc5c9de8869d3137acb20 (diff) | |
| download | kamusku-8e2aaf2df151f61a874bb7a62929afb005fa2abd.tar.xz | |
all: fix and suppress linter warnings
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 |
