Skip to content

Commit

Permalink
Merge pull request #134 from elecbug/master
Browse files Browse the repository at this point in the history
feat: add log printing when peer added and removed table
  • Loading branch information
guillaumemichel authored Aug 27, 2024
2 parents 367b908 + 4594fe6 commit 3b044bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ func NewRoutingTable(bucketsize int, localID ID, latency time.Duration, m peerst

cplRefreshedAt: make(map[uint]time.Time),

PeerRemoved: func(peer.ID) {},
PeerAdded: func(peer.ID) {},
PeerRemoved: func(p peer.ID) {
log.Debugw("peer removed", "peer", p)
},
PeerAdded: func(p peer.ID) {
log.Debugw("peer added", "peer", p)
},

usefulnessGracePeriod: usefulnessGracePeriod,

Expand Down

0 comments on commit 3b044bb

Please sign in to comment.