cmd/tokidoki: fix unused error

This commit is contained in:
Conrad Hoffmann 2024-11-07 12:20:11 +01:00
parent 6eeea854be
commit 7e03188c5a

View file

@ -207,7 +207,10 @@ func main() {
for sig := range sigCh { for sig := range sigCh {
switch sig { switch sig {
case syscall.SIGINT, syscall.SIGTERM: case syscall.SIGINT, syscall.SIGTERM:
server.Shutdown(context.Background()) err := server.Shutdown(context.Background())
if err != nil {
log.Fatal().Err(err).Msg("Shutdown() error")
}
return return
} }
} }