Format
This commit is contained in:
parent
23230fad68
commit
c234b11cc2
|
@ -87,14 +87,13 @@ func main() {
|
|||
// Graceful Shutdown
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
|
||||
go func(){
|
||||
go func() {
|
||||
<-c
|
||||
acn.Close()
|
||||
server.Close()
|
||||
os.Exit(1)
|
||||
}()
|
||||
|
||||
|
||||
server.Run(acn)
|
||||
for {
|
||||
time.Sleep(time.Second)
|
||||
|
|
Loading…
Reference in New Issue