p2p: remove unused code (#20325)
This commit is contained in:
@ -199,7 +199,6 @@ type Server struct {
|
||||
checkpointAddPeer chan *conn
|
||||
|
||||
// State of run loop and listenLoop.
|
||||
lastLookup time.Time
|
||||
inboundHistory expHeap
|
||||
}
|
||||
|
||||
@ -410,7 +409,7 @@ type sharedUDPConn struct {
|
||||
func (s *sharedUDPConn) ReadFromUDP(b []byte) (n int, addr *net.UDPAddr, err error) {
|
||||
packet, ok := <-s.unhandled
|
||||
if !ok {
|
||||
return 0, nil, errors.New("Connection was closed")
|
||||
return 0, nil, errors.New("connection was closed")
|
||||
}
|
||||
l := len(packet.Data)
|
||||
if l > len(b) {
|
||||
|
Reference in New Issue
Block a user