2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

10 second worker delay after disconnect error

This commit is contained in:
asonix 2023-09-04 22:04:15 -05:00
parent 62ebc1c60a
commit 492b99922b

View file

@ -204,7 +204,7 @@ async fn process_jobs<S, F>(
tracing::warn!("{}", format!("{e:?}")); tracing::warn!("{}", format!("{e:?}"));
if e.is_disconnected() { if e.is_disconnected() {
actix_rt::time::sleep(Duration::from_secs(3)).await; actix_rt::time::sleep(Duration::from_secs(10)).await;
} }
continue; continue;