-
Notifications
You must be signed in to change notification settings - Fork 164
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
[WIP] feat(iroh-sync): download from peer that informed us about a change #1314
Conversation
I think this is a great first direction, and getting this in and working to test it out would be great. |
d2660ae
to
de61c04
Compare
3c243b9
to
ba10245
Compare
de61c04
to
22ad89a
Compare
ba10245
to
5df8b13
Compare
The We want to be able to queue downloads with retries and different timeouts. My idea was to add a time-based queue, maybe using the With this, we can then:
Later on, we'd also want to add an explicit command to retry all missing hashes in a document from a peer, and optionally a mode that would do that automatically if we get new neighbors. This will initially be quite inefficient for large docs, because we have no ẁant Edit Edit 2 |
594c54a
to
7c6cb35
Compare
5df8b13
to
5999290
Compare
7465a07
to
ed8cb2d
Compare
@divagant-martian I moved the downloader out from Once CI passes (apart from the crosscompiles) I'd merge this into the main iroh sync PR #1216 . Less PRs and a cleaner slate for you to build on. After merging this, let's continue the discussion in #1334 - rklaehn wanted to add some comments too. |
Description
Try to download content from the peer that informed us about a change. During set reconciliation that is the peer we're talking to, during gossip it's the next peer in the graph (so not the sender of the message but the peer which forwarded the message to us).
This is not finished and waiting for a better downloader which will come soon, but might be interesting to try out now still.
Notes & open questions
Change checklist