Skip to content

Commit f3e95bc

Browse files
committed
fix Errorf format in server.go
1 parent 4c63fb3 commit f3e95bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import (
55
"context"
66
"encoding/json"
77
"fmt"
8-
"github.com/rs/zerolog/log"
98
"net"
109
"strings"
1110
"sync"
1211
"time"
1312

13+
"github.com/rs/zerolog/log"
14+
1415
"github.com/abronan/valkeyrie/store"
1516
)
1617

@@ -255,7 +256,7 @@ func (s *Server) handleService(mainconn net.Conn, serverName, peeked string, isT
255256
}
256257

257258
if err != nil {
258-
return fmt.Errorf("failed to forward traffic: %w", err)
259+
return fmt.Errorf("failed to forward traffic: %v", err)
259260
}
260261

261262
return nil

0 commit comments

Comments
 (0)