bridge descriptors: Change default max_refetch

As per
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/820#note_2850269
This commit is contained in:
Ian Jackson 2022-11-01 15:08:44 +00:00
parent 2ae8a52371
commit 42b1b08fdf
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ impl Default for BridgeDescDownloadConfig {
retry: secs(30),
prefetch: secs(1000),
min_refetch: secs(3600),
max_refetch: secs(86400),
max_refetch: secs(3600 * 3), // matches C Tor behaviour
}
}
}

View File

@ -235,7 +235,7 @@ async fn success() -> Result<(), anyhow::Error> {
eprintln!("----- move the clock forward to do some retries ----------");
mock.sleep.advance(Duration::from_secs(50000)).await;
mock.sleep.advance(Duration::from_secs(5000)).await;
bdm.check_consistency(Some(&bridges));