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

feat(engine): tag peers with requests #128

Merged
merged 1 commit into from
May 22, 2019

Conversation

hannahhoward
Copy link
Contributor

Goals

fix #114 - tag peers in connection manager as they have outstanding requests for blocks to serve

Implementation

Also see ipfs/go-peertaskqueue#3 as it supports functionality here.

Essentially:

  • add hooks for peers being added and removed from peer task queue
  • pass conn manager to engine
  • in hooks, tag/untag peers in conn manager

Note: Uses arbitrary weight for the time being -- not sure if there is a better solution here

tag peers in connection manager as they have outstanding requests for blocks to serve

fix #114
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

🎉

@Stebalien Stebalien merged commit acc22c2 into master May 22, 2019
@Stebalien Stebalien deleted the feat/tag-peers-with-requests branch May 22, 2019 18:05
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
…requests

feat(engine): tag peers with requests

This commit was moved from ipfs/go-bitswap@acc22c2
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.

Tag peers in request queue
2 participants