aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-04-12 04:42:45 +0700
committerShulhan <m.shulhan@gmail.com>2020-04-12 04:42:45 +0700
commit8e2aaf2df151f61a874bb7a62929afb005fa2abd (patch)
tree3497f604013d52b7f9a3c38335cf77661b388c44 /server.go
parent9cf57fc952e4161c8e7fc5c9de8869d3137acb20 (diff)
downloadkamusku-8e2aaf2df151f61a874bb7a62929afb005fa2abd.tar.xz
all: fix and suppress linter warnings
Diffstat (limited to 'server.go')
-rw-r--r--server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.go b/server.go
index aea5982..e3ed460 100644
--- a/server.go
+++ b/server.go
@@ -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