silence go vet, staticcheck
This commit is contained in:
parent
42b391fe9b
commit
f59f129354
5 changed files with 11 additions and 11 deletions
|
|
@ -52,7 +52,7 @@ func (srv *Server) Start() {
|
|||
}()
|
||||
log.Printf("Listening on %s\n", srv.Addr)
|
||||
|
||||
quit := make(chan os.Signal)
|
||||
quit := make(chan os.Signal, 1)
|
||||
signal.Notify(quit, os.Interrupt)
|
||||
sig := <-quit
|
||||
log.Println("Shutting down server... Reason:", sig)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue