Skip to content

Commit

Permalink
fix: Still install futures-lite for doctests & fix dht.rs import
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Jan 29, 2025
1 parent abcb366 commit 631bf40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions iroh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ atomic-waker = "1.1.2"
[dev-dependencies]
axum = { version = "0.7" }
clap = { version = "4", features = ["derive"] }
futures-lite = "2.6"
pretty_assertions = "1.4"
rand_chacha = "0.3.1"
tokio = { version = "1", features = [
Expand Down
2 changes: 1 addition & 1 deletion iroh/src/discovery/pkarr/dht.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl Discovery for DhtDiscovery {
pkarr::PublicKey::try_from(node_id.as_bytes()).expect("valid public key");
tracing::info!("resolving {} as {}", node_id, pkarr_public_key.to_z32());

let mut stream = futures_buffered::FuturesUnorderedBounded::new(2);
let mut stream = n0_future::FuturesUnorderedBounded::new(2);
if self.0.pkarr_relay.is_some() {
let key = pkarr_public_key.clone();
let discovery = self.0.clone();
Expand Down

0 comments on commit 631bf40

Please sign in to comment.