Sfoglia il codice sorgente

remove unreachable

JackDoan 8 mesi fa
parent
commit
6f8424cef1
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. 0 3
      udp/udp_generic.go

+ 0 - 3
udp/udp_generic.go

@@ -13,7 +13,6 @@ import (
 	"fmt"
 	"net"
 	"net/netip"
-	"time"
 
 	"github.com/sirupsen/logrus"
 	"github.com/slackhq/nebula/config"
@@ -75,8 +74,6 @@ type rawMessage struct {
 func (u *GenericConn) ListenOut(r EncReader) error {
 	buffer := make([]byte, MTU)
 
-	var lastRecvErr time.Time
-
 	for {
 		// Just read one packet at a time
 		n, rua, err := u.ReadFromUDPAddrPort(buffer)