mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-19 19:17:01 -07:00
cmd: changed 'server' variable name to not collide with package name
This commit is contained in:
parent
34bbd1ce85
commit
5c9e9f0540
1 changed files with 4 additions and 4 deletions
|
|
@ -41,11 +41,11 @@ var serveCmd = &cobra.Command{
|
|||
fmt.Printf("%v\n", string(b))
|
||||
}
|
||||
|
||||
// set up the routes and start the serve
|
||||
server := server.New(&conf)
|
||||
|
||||
// start listening with the server
|
||||
err := server.Serve()
|
||||
var (
|
||||
s *server.Server = server.New(&conf)
|
||||
err error = s.Serve()
|
||||
)
|
||||
if errors.Is(err, http.ErrServerClosed) {
|
||||
if verbose {
|
||||
log.Info().Msg("server closed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue