increase csma/ca time

This commit is contained in:
Oliver 2025-08-08 23:34:45 -06:00
parent f3a51065b5
commit ad8d7c606d

View File

@ -102,7 +102,7 @@ pub async fn get_next(db: &Surreal<Client>, config: &Config) -> Option<Website>
Ok(ok) => ok, Ok(ok) => ok,
Err(_err) => { Err(_err) => {
// basically just CSMA/CA // basically just CSMA/CA
let delay = rand::random_range(10..500); let delay = rand::random_range(10..10_000);
sleep(Duration::from_millis(delay)).await; sleep(Duration::from_millis(delay)).await;
fails += 1; fails += 1;
// Don't get stuck here forever, failing... // Don't get stuck here forever, failing...