From eb52d368eae920fc5bea64aa3c2557da0a79afe3 Mon Sep 17 00:00:00 2001 From: dviejokfs Date: Sun, 3 Apr 2022 14:17:36 +0200 Subject: [PATCH] fix tests --- cmd/server/server.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/server/server.go b/cmd/server/server.go index 33c1df5..01624f8 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -6,16 +6,17 @@ import ( "encoding/binary" "encoding/json" "fmt" - "github.com/golang/protobuf/proto" - "github.com/hashicorp/yamux" - "github.com/kfsoftware/getout/pkg/messages" - "github.com/rs/zerolog/log" - "github.com/spf13/cobra" "io" "net" "net/http" "sync" "time" + + "github.com/golang/protobuf/proto" + "github.com/hashicorp/yamux" + "github.com/kfsoftware/getout/pkg/messages" + "github.com/rs/zerolog/log" + "github.com/spf13/cobra" ) type serverCmd struct { @@ -101,7 +102,7 @@ func (c *serverCmd) run() error { err := http.ListenAndServe(c.adminAddr, nil) if err != nil { - log.Error().Msgf("Error listening on %s: %w", c.adminAddr, err) + log.Error().Msgf("Error listening on %s: %v", c.adminAddr, err) } }()