mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +08:00
Update server.go
This commit is contained in:
parent
d3c6fecb57
commit
71ef1798c6
@ -1,4 +1,4 @@
|
||||
// +build go1.8
|
||||
// +build go1.11
|
||||
|
||||
package main
|
||||
|
||||
@ -47,6 +47,7 @@ func main() {
|
||||
// catching ctx.Done(). timeout of 5 seconds.
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
log.Println("timeout of 5 seconds.")
|
||||
}
|
||||
log.Println("Server exiting")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user