diff --git a/peer.go b/peer.go index 88930f90..e3df34ca 100644 --- a/peer.go +++ b/peer.go @@ -96,9 +96,6 @@ type peer struct { inbound bool id int32 - // For purposes of detecting retransmits, etc. - lastNMessages map[lnwire.Message]struct{} - // This mutex protects all the stats below it. sync.RWMutex timeConnected time.Time @@ -184,8 +181,6 @@ func newPeer(conn net.Conn, connReq *connmgr.ConnReq, server *server, server: server, - lastNMessages: make(map[lnwire.Message]struct{}), - sendQueueSync: make(chan struct{}, 1), sendQueue: make(chan outgoinMsg, 1), outgoingQueue: make(chan outgoinMsg, outgoingQueueLen),