Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
fix(sessionpeermanager): actually use the tag value
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Apr 29, 2019
1 parent 2128a5a commit 8d74ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 8d74ae2

Please sign in to comment.