Skip to content

Commit 7818df4

Browse files
authored
Merge pull request #3864 from autonomys/revert/sector-download-timeout
Revert sector download timeout
2 parents 4ea9b2a + e2ddcb6 commit 7818df4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

crates/subspace-farmer-components/src/plotting.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ use tracing::{debug, trace, warn};
4040

4141
const RECONSTRUCTION_CONCURRENCY_LIMIT: usize = 1;
4242

43-
/// Maximum time allowed for a sector download before giving up (retry will continue at the farm level).
44-
const SECTOR_DOWNLOAD_MAX_ELAPSED_TIME: Duration = Duration::from_secs(30 * 60); // 30 minutes
45-
4643
fn default_backoff() -> ExponentialBackoff {
4744
ExponentialBackoff {
4845
initial_interval: Duration::from_secs(15),
4946
max_interval: Duration::from_secs(10 * 60),
50-
max_elapsed_time: Some(SECTOR_DOWNLOAD_MAX_ELAPSED_TIME),
47+
// Try until we get a valid piece
48+
max_elapsed_time: None,
5149
..ExponentialBackoff::default()
5250
}
5351
}

0 commit comments

Comments
 (0)