Skip to content

Commit 8053f3b

Browse files
committed
Fix linter complain
1 parent 9e4791f commit 8053f3b

File tree

1 file changed

+4
-4
lines changed
  • services/wireguard/endpoint/netstack-provider

1 file changed

+4
-4
lines changed

services/wireguard/endpoint/netstack-provider/netstack.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ import (
2929
"syscall"
3030
"time"
3131

32-
"github.com/mysteriumnetwork/node/config"
33-
3432
"github.com/rs/zerolog/log"
3533
"golang.org/x/time/rate"
3634
"golang.zx2c4.com/wireguard/tun"
@@ -47,6 +45,8 @@ import (
4745
"gvisor.dev/gvisor/pkg/tcpip/transport/tcp"
4846
"gvisor.dev/gvisor/pkg/tcpip/transport/udp"
4947
"gvisor.dev/gvisor/pkg/waiter"
48+
49+
"github.com/mysteriumnetwork/node/config"
5050
)
5151

5252
type netTun struct {
@@ -239,7 +239,7 @@ func (tun *netTun) acceptTCP(r *tcp.ForwarderRequest) {
239239
var wq waiter.Queue
240240
ep, tcpErr := r.CreateEndpoint(&wq)
241241
if tcpErr != nil {
242-
log.Error().Err(fmt.Errorf(tcpErr.String())).Msg("Failed to create TCP endpoint for forwarding request")
242+
log.Error().Err(fmt.Errorf("%s", tcpErr.String())).Msg("Failed to create TCP endpoint for forwarding request")
243243
r.Complete(true)
244244
return
245245
}
@@ -300,7 +300,7 @@ func (tun *netTun) acceptUDP(req *udp.ForwarderRequest) {
300300

301301
ep, udpErr := req.CreateEndpoint(&wq)
302302
if udpErr != nil {
303-
log.Error().Err(fmt.Errorf(udpErr.String())).Msg("Failed to create UDP endpoint for forwarding request")
303+
log.Error().Err(fmt.Errorf("%s", udpErr.String())).Msg("Failed to create UDP endpoint for forwarding request")
304304
return
305305
}
306306

0 commit comments

Comments
 (0)