general: lint clean, vet clean

This commit is contained in:
Leo Balduf
2016-04-07 10:24:37 -04:00
parent f17ad3e24d
commit 0c02ac9980
7 changed files with 36 additions and 15 deletions
+4
View File
@@ -40,6 +40,9 @@ type httpServer struct {
grace *graceful.Server
}
// Start runs the server and blocks until it has exited.
//
// It panics if the server exits unexpectedly.
func (s *httpServer) Start() {
s.grace = &graceful.Server{
Server: &http.Server{
@@ -81,6 +84,7 @@ func (s *httpServer) Start() {
log.Println("HTTP server shut down cleanly")
}
// Stop stops the server and blocks until the server has exited.
func (s *httpServer) Stop() {
s.grace.Stop(s.grace.Timeout)
<-s.grace.StopChan()