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: parallel peer analysis #85

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

wolf31o2
Copy link
Member

@wolf31o2 wolf31o2 commented Oct 2, 2023

Run peer analysis in parallel and in the background to speed it up.

  • Import sync
  • Create a sync WaitGroup in getPeerText when pingPeers is true
  • Remove lastpeerIP since we're not longer serial
  • Start peer analysis in goroutines (go func())
  • Change peerPort conversion failure to default to port 0
  • Wait for the WaitGroup to complete before sorting
  • Remove "Coming soon" on geolocation

Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
@wolf31o2 wolf31o2 merged commit 853754e into main Oct 2, 2023
7 checks passed
@wolf31o2 wolf31o2 deleted the feat/parallel-peer-analysis branch October 2, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants