refactor: give Peers knowledge of Ourself.Peer and MacCache

so their use (when applying updates and performing gc) is opaque
This commit is contained in:
Matthias Radestock committed 2014-12-25 13:49:58 +00:00
1 parent af59b38134
commit 75ed7d52b9
4 files changed
+23 -17

No files matched your search

+1 -1
View File
@@ -362,7 +362,7 @@ func (peer *LocalPeer) handleDeleteConnection(conn *LocalConnection) {
}
// Must do garbage collection first to ensure we don't send out an
// update with unreachable peers (can cause looping)
peer.Router.Peers.GarbageCollect(peer.Router.Ourself.Peer, peer.Router.Macs)
peer.Router.Peers.GarbageCollect()
if broadcast {
peer.broadcastPeerUpdate()
}