We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d993b01 commit e1d63aeCopy full SHA for e1d63ae
main.go
@@ -46,7 +46,12 @@ func main() {
46
sig := <-sigChan
47
ctx.Done()
48
log.Println("exit requested, shutting down", "signal", sig)
49
- router.ShutdownWithTimeout(time.Second)
+
50
+ err := router.ShutdownWithTimeout(time.Second)
51
+ if err != nil {
52
+ log.Fatalln(err)
53
+ }
54
+ log.Println("server shutdown")
55
}()
56
57
err = router.Listen(fmt.Sprintf(":%d", internal.AppCnf.Port))
0 commit comments