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

connmgr: give peers more weight when actively participating in a session #111

Merged
merged 4 commits into from
Apr 30, 2019

Conversation

Stebalien
Copy link
Member

Review as individual commits, the other two commits are chores.

@ghost ghost assigned Stebalien Apr 25, 2019
@ghost ghost added the status/in-progress In progress label Apr 25, 2019
@Stebalien Stebalien requested a review from hannahhoward April 26, 2019 09:56
Copy link
Contributor

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you're submitted a fixed value for tagging, even though the tagPeer function takes a value now.

@@ -131,7 +133,7 @@ func (spm *SessionPeerManager) run(ctx context.Context) {
}
}

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't appear to be using the value passed in here

@Stebalien Stebalien requested a review from hannahhoward April 29, 2019 21:48
@Stebalien Stebalien force-pushed the feat/improve-connmgr branch from 244ea4f to 8d74ae2 Compare April 29, 2019 21:48
@Stebalien
Copy link
Member Author

@hannahhoward thanks for catching that! Fixed.

@hannahhoward hannahhoward merged commit 07ec9e8 into master Apr 30, 2019
@ghost ghost removed the status/in-progress In progress label Apr 30, 2019
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
connmgr: give peers more weight when actively participating in a session

This commit was moved from ipfs/go-bitswap@07ec9e8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants