feat: add makefile

This commit is contained in:
2024-02-22 18:59:28 +01:00
parent 91585fdb0a
commit bfa9f9dd79
4 changed files with 65 additions and 3 deletions

View File

@@ -36,7 +36,9 @@ func main() {
log.Println("on shutdown")
if restServer != nil {
restServer.Shutdown()
if err := restServer.Shutdown(); err != nil {
panic(err)
}
}
log.Println("gracefully shutdown")