Fix Formatting

This commit is contained in:
2021-01-18 16:24:28 -05:00
parent b05b1eb9b6
commit 3fd6e7b957
9 changed files with 37 additions and 38 deletions

View File

@@ -45,8 +45,8 @@ func cmdServer(ctx *cli.Context) error {
server.StartServer()
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
signal.Notify(c, os.Interrupt)
<-c
server.StopServer()
os.Exit(0)

View File

@@ -12,9 +12,9 @@ import (
)
type Server struct {
API *api.API
Auth *auth.AuthManager
Config *config.Config
API *api.API
Auth *auth.AuthManager
Config *config.Config
Database *db.DBManager
httpServer *http.Server
}
@@ -45,8 +45,8 @@ func (s *Server) StartServer() {
err := s.httpServer.ListenAndServe()
if err != nil {
log.Error("Error starting server ", err)
return
}
return
}
}()
}