Skip to content

feat: integrate peer announcer, write state files #283

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cmars
Copy link
Owner

@cmars cmars commented May 27, 2025

Integrate the peer announcer, so that discovered peers are announced to others.

Write files containing the share key and index digest to the state_dir in the main app. This is useful for orchestrating stigmerge with containers or testing with shadow.

WIP: peer announcer isn't set up quite right yet...

cmars added 2 commits May 26, 2025 23:05
Integrate the peer announcer, so that discovered peers are announced to others.

Write files containing the share key and index digest to the state_dir in the
main app.  This is useful for orchestrating stigmerge with containers or
testing with shadow.
Peer tracking is important during a fetch, but needs to persist beyond fetching
a share.

Move PeerTracker to its own module, share among fetcher and seeder using
Arc<Mutex<>>, and move peer resolving to the seeder, so that it can continue
after fetching.
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.

1 participant