graceful-shutdown(in https://github.com/gin-gonic/examples/blob/master/graceful-shutdown/graceful-shutdown/server.go)
Jarnpher553 opened this issue · comments
jarnpher_rice commented
select {
case <-ctx.Done():
log.Println("timeout of 5 seconds.")
}
why is not under?
select {
case <-ctx.Done():
log.Println("timeout of 5 seconds.")
default:
}
thinkerou commented
if you need default
, please do it, thanks!