Skip to content

Commit 1e50976

Browse files
fix warns
1 parent e456aa6 commit 1e50976

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

iroh-net/src/defaults.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -134,34 +134,4 @@ pub(crate) mod timeouts {
134134

135135
/// Maximum duration to wait for a netcheck report.
136136
pub(crate) const NETCHECK_REPORT_TIMEOUT: Duration = Duration::from_secs(10);
137-
138-
/// The maximum amount of time netcheck will spend gathering a single report.
139-
pub(crate) const OVERALL_REPORT_TIMEOUT: Duration = Duration::from_secs(5);
140-
141-
/// The total time we wait for all the probes.
142-
///
143-
/// This includes the STUN, ICMP and HTTPS probes, which will all
144-
/// start at different times based on the ProbePlan.
145-
pub(crate) const PROBES_TIMEOUT: Duration = Duration::from_secs(3);
146-
147-
/// How long to await for a captive-portal result.
148-
///
149-
/// This delay is chosen so it starts after good-working STUN probes
150-
/// would have finished, but not too long so the delay is bearable if
151-
/// STUN is blocked.
152-
pub(crate) const CAPTIVE_PORTAL_DELAY: Duration = Duration::from_millis(200);
153-
154-
/// Timeout for captive portal checks
155-
///
156-
/// Must be lower than [`OVERALL_REPORT_TIMEOUT`] minus
157-
/// [`CAPTIVE_PORTAL_DELAY`].
158-
pub(crate) const CAPTIVE_PORTAL_TIMEOUT: Duration = Duration::from_secs(2);
159-
160-
pub(crate) const DNS_TIMEOUT: Duration = Duration::from_secs(3);
161-
162-
/// The amount of time we wait for a hairpinned packet to come back.
163-
pub(crate) const HAIRPIN_CHECK_TIMEOUT: Duration = Duration::from_millis(100);
164-
165-
/// Default Pinger timeout
166-
pub(crate) const DEFAULT_PINGER_TIMEOUT: Duration = Duration::from_secs(5);
167137
}

iroh-netcheck/src/dns.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,10 @@ async fn stagger_call<T, F: Fn() -> Fut, Fut: Future<Output = Result<T>>>(
203203
pub(crate) mod tests {
204204
use std::net::Ipv6Addr;
205205
use std::sync::atomic::AtomicUsize;
206-
use std::time::Duration;
207206

208207
use once_cell::sync::Lazy;
209208

210209
use super::*;
211-
const TIMEOUT: Duration = Duration::from_secs(5);
212-
const STAGGERING_DELAYS: &[u64] = &[200, 300];
213210

214211
static DNS_RESOLVER: Lazy<TokioAsyncResolver> =
215212
Lazy::new(|| create_default_resolver().expect("unable to create DNS resolver"));

0 commit comments

Comments
 (0)