From 54c63f4aa1aabdf036d9854d836b087cb3c26730 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 13 Apr 2017 14:31:54 -0700 Subject: [PATCH] peer: remove unused lastNMessages map This map was added very early on as a possible path to implement proper retransmission. However, we now have a proper persistent retransmission sub-system being proposed as a PR, therefore we no longer have any use for this. --- peer.go | 5 ----- 1 file changed, 5 deletions(-) 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),