Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Jan 18, 2023
1 parent 426e296 commit a562652
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions header/p2p/peer_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (p *peerStat) updateStats(amount uint64, time uint64) {
// decreaseScore decreases peerScore by 20% of the peer that failed the request by any reason.
// NOTE: decreasing peerScore in one session will not affect its position in queue in another
// session(as we can have multiple sessions running concurrently).
// TODO(vgonkivs): to figure out the better scoring increments/decrements
func (p *peerStat) decreaseScore() {
p.Lock()
defer p.Unlock()
Expand Down

0 comments on commit a562652

Please sign in to comment.