Skip to content

Commit

Permalink
avoid performing garbage collect on each topology update
Browse files Browse the repository at this point in the history
Fixes: #115
  • Loading branch information
murali-reddy committed Sep 18, 2019
1 parent b7aea39 commit 9665e4a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,6 @@ func (peers *Peers) applyUpdate(update []byte) (peerNameSet, peerNameSet, error)

// Now apply the updates
newUpdate := peers.applyDecodedUpdate(decodedUpdate, decodedConns, &pending)
peers.garbageCollect(&pending)
for _, peerRemoved := range pending.removed {
delete(newUpdate, peerRemoved.Name)
}

updateNames := make(peerNameSet)
for _, peer := range decodedUpdate {
Expand Down

0 comments on commit 9665e4a

Please sign in to comment.