Skip to content

Commit

Permalink
Merge pull request #96 from bgokden/develop
Browse files Browse the repository at this point in the history
Delete old peer problem
  • Loading branch information
bgokden authored Aug 10, 2021
2 parents 972881b + f0bebd8 commit 2511fcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ func (n *Node) SyncWithPeers() {
peerList := n.PeerList.Items()
for _, item := range peerList {
peer := item.Object.(*pb.Peer)
if !n.CheckPeer(peer) { // remove old peer
continue
}
// Delete by timeout
// if !n.CheckPeer(peer) { // remove old peer
// continue
// }
idOfPeer := n.GetDifferentAddressOf(peer)
if idOfPeer == "" {
continue
Expand Down

0 comments on commit 2511fcd

Please sign in to comment.