Skip to content

Commit

Permalink
peer: remove unused lastNMessages map
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roasbeef committed Apr 13, 2017
1 parent f7c8938 commit 54c63f4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 54c63f4

Please sign in to comment.