From ccbfe5b6fa4dd341d371b63a304b5e55abe3c7be Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Wed, 26 Apr 2023 09:58:48 +0200 Subject: [PATCH] node: Add warning if workers are all busy --- radicle-node/src/wire/protocol.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicle-node/src/wire/protocol.rs b/radicle-node/src/wire/protocol.rs index 41e2251a..15180adc 100644 --- a/radicle-node/src/wire/protocol.rs +++ b/radicle-node/src/wire/protocol.rs @@ -843,6 +843,12 @@ where channels, }; + if !self.worker.is_empty() { + log::warn!( + target: "wire", + "Worker pool is busy: {} tasks pending, fetch requests may be delayed", self.worker.len() + ); + } if self.worker.send(task).is_err() { log::error!(target: "wire", "Worker pool is disconnected; cannot send fetch request"); }