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

fix(iroh-net): reduce noise in swarm discovery due to republish #2685

Conversation

divagant-martian
Copy link
Contributor

@divagant-martian divagant-martian commented Sep 2, 2024

Description

Since republish occurs more or less every second, for every peer in the local network, every second we insert it in the node_map (which includes locking), print a debug line, and for requesters, re-send a value that was previously sent (since every time a new sender is added we immediately send known values). This pr makes it so that we do all this only when new values are found.

Breaking Changes

  • swarm discovery will no longer send consecutive repeated values

Notes & open questions

the typo is unrelated to the pr but was flagged by ci

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@divagant-martian divagant-martian changed the title fix(iroh-net): reduce noise from swarm discovery fix(iroh-net): reduce noise in swarm discovery due to republish Sep 2, 2024
@divagant-martian divagant-martian added this pull request to the merge queue Sep 2, 2024
Merged via the queue into n0-computer:main with commit fd56763 Sep 2, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants