Browse Source

Merge branch 'master' of ssh://git.duch.me:222/justin/libpostal-rest

master
Justin Duch 11 months ago
parent
commit
332b15b75c
  1. 4
      main.go

4
main.go

@ -59,7 +59,9 @@ func main() {
<-stop
fmt.Println("\nShutting down the server...")
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
s.Shutdown(ctx)
fmt.Println("Server stopped")
}

Loading…
Cancel
Save