Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add peer locations bundle #702

Merged
merged 5 commits into from
Jul 19, 2018
Merged

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jul 3, 2018

Adds a bundle that fetches peer locations in parallel up to the configured concurrency level.

Use selectPeerLocations to get an object like { [peerId]: { /* location data */ } }.

It depends on the peers bundle and will automatically get locations for all peers in the swarm.

Peers without a resolved location get the rainbow flag 🏳️‍🌈.

I added it to the peer bandwidth list on the status page:

screen shot 2018-07-17 at 10 03 22

@alanshaw alanshaw changed the title [WIP] feat: add peer locations bundle feat: add peer locations bundle Jul 17, 2018
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
Copy link
Member

@hacdias hacdias left a comment

Choose a reason for hiding this comment

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

LGTM 😄

@fsdiogo fsdiogo mentioned this pull request Jul 17, 2018
5 tasks
@hacdias
Copy link
Member

hacdias commented Jul 19, 2018

@olizilla @alanshaw can this be merged?

@hacdias hacdias merged commit 9163084 into revamp Jul 19, 2018
@alanshaw alanshaw deleted the feat/revamp/status-page-flags branch July 19, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants