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:
parent
2ae8a52371
commit
42b1b08fdf
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue