Skip to content

Commit

Permalink
Improve iroh-net-report/Cargo.toml diff
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Jan 28, 2025
1 parent 5191a9c commit 5286020
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions iroh-net-report/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ workspace = true
anyhow = "1"
bytes = "1.7"
derive_more = { version = "1.0.0", features = ["display"] }
futures-buffered = "0.2.8"
futures-lite = "2.3"
iroh-base = { version = "0.31.0", path = "../iroh-base", default-features = false, features = ["relay"] }
iroh-metrics = { version = "0.31", default-features = false }
iroh-relay = { version = "0.31", path = "../iroh-relay", default-features = false }
Expand All @@ -30,7 +28,7 @@ rand = "0.8"
reqwest = { version = "0.12", default-features = false, features = ["stream"] }
rustls = { version = "0.23", default-features = false }
thiserror = "2"
tokio = { version = "1", default-features = false, features = ["sync", "time", "macros"] }
tokio = { version = "1", default-features = false, features = ["sync", "time", "macros", "rt"] }
tokio-util = { version = "0.7.12", default-features = false }
tracing = "0.1"
url = { version = "2.4" }
Expand All @@ -41,7 +39,6 @@ hickory-resolver = "=0.25.0-alpha.4"
netwatch = { version = "0.3" }
portmapper = { version = "0.3", default-features = false }
surge-ping = "0.8.0"
tokio = { version = "1", default-features = false, features = ["sync", "time", "macros", "rt"] }

[dev-dependencies]
iroh-relay = { path = "../iroh-relay", features = ["test-utils", "server"] }
Expand Down
5 changes: 2 additions & 3 deletions iroh-net-report/src/dns.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use std::{fmt::Write, net::IpAddr};

use anyhow::Result;
use futures_lite::{Future, StreamExt};
use hickory_resolver::{IntoName, TokioResolver};
use n0_future::time;
use n0_future::{time, Future, StreamExt};

use crate::defaults::timeouts::DNS_TIMEOUT;

Expand Down Expand Up @@ -151,7 +150,7 @@ async fn stagger_call<T, F: Fn() -> Fut, Fut: Future<Output = Result<T>>>(
f: F,
delays_ms: &[u64],
) -> Result<T> {
let mut calls = futures_buffered::FuturesUnorderedBounded::new(delays_ms.len() + 1);
let mut calls = n0_future::FuturesUnorderedBounded::new(delays_ms.len() + 1);
// NOTE: we add the 0 delay here to have a uniform set of futures. This is more performant than
// using alternatives that allow futures of different types.
for delay in std::iter::once(&0u64).chain(delays_ms) {
Expand Down
2 changes: 1 addition & 1 deletion iroh-net-report/src/reportgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use std::{
};

use anyhow::{anyhow, bail, Context as _, Result};
use futures_lite::StreamExt as _;
#[cfg(not(wasm_browser))]
use hickory_resolver::TokioResolver as DnsResolver;
use iroh_base::RelayUrl;
Expand All @@ -41,6 +40,7 @@ use iroh_relay::{
use n0_future::{
task::{self, AbortOnDropHandle, JoinSet},
time::{self, Duration, Instant},
StreamExt as _,
};
#[cfg(not(wasm_browser))]
use netwatch::{interfaces, UdpSocket};
Expand Down

0 comments on commit 5286020

Please sign in to comment.