From 492b99922be1764a8f4a1128e8a786e403479ecc Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 4 Sep 2023 22:04:15 -0500 Subject: [PATCH] 10 second worker delay after disconnect error --- src/queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue.rs b/src/queue.rs index a3cbe15..0c4447e 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -204,7 +204,7 @@ async fn process_jobs( tracing::warn!("{}", format!("{e:?}")); if e.is_disconnected() { - actix_rt::time::sleep(Duration::from_secs(3)).await; + actix_rt::time::sleep(Duration::from_secs(10)).await; } continue;