-
Notifications
You must be signed in to change notification settings - Fork 236
refactor(iroh): remove genawaiter usage from dht discovery #3048
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
Conversation
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3048/docs/iroh/ Last updated: 2024-12-16T09:57:10Z |
let pkarr_public_key = | ||
pkarr::PublicKey::try_from(node_id.as_bytes()).expect("valid public key"); | ||
tracing::info!("resolving {} as {}", node_id, pkarr_public_key.to_z32()); | ||
Some(Gen::new(|co| async move { this.gen_resolve(node_id, co).await }).boxed()) | ||
|
||
let mut stream = futures_buffered::FuturesUnorderedBounded::new(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not really removing genawaiter but replacing genawaiter with futures_buffered. But since we need that anyway in a bunch of places, makes sense.
Even though I really like genawaiter...
32756a3
to
4956e00
Compare
Description
One less dependency in the core of iroh
Breaking Changes
Notes & open questions
Change checklist