Skip to content

Commit

Permalink
fix(sessionpeermanager): actually use the tag value
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-bitswap@8d74ae2
  • Loading branch information
Stebalien committed Apr 29, 2019
1 parent e434b5c commit 9477f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitswap/sessionpeermanager/sessionpeermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (spm *SessionPeerManager) run(ctx context.Context) {
}

func (spm *SessionPeerManager) tagPeer(p peer.ID, value int) {
spm.tagger.TagPeer(p, spm.tag, 10)
spm.tagger.TagPeer(p, spm.tag, value)
}

func (spm *SessionPeerManager) insertOptimizedPeer(p peer.ID) {
Expand Down

0 comments on commit 9477f82

Please sign in to comment.