Skip to content

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

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

dignifiedquire
Copy link
Contributor

Description

One less dependency in the core of iroh

Breaking Changes

Notes & open questions

Change checklist

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

Copy link

github-actions bot commented Dec 13, 2024

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

Copy link

github-actions bot commented Dec 13, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: ef5acbe

@dignifiedquire dignifiedquire self-assigned this Dec 16, 2024
@dignifiedquire dignifiedquire added this to the v0.30.0 milestone Dec 16, 2024
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);
Copy link
Contributor

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...

@dignifiedquire dignifiedquire added this pull request to the merge queue Dec 16, 2024
Merged via the queue into main with commit 738c773 Dec 16, 2024
26 checks passed
@dignifiedquire dignifiedquire deleted the refactor-remove-genawaiter branch May 14, 2025 08:09
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.

3 participants