Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Add warning if workers are all busy
Alexis Sellier committed 3 years ago
commit ccbfe5b6fa4dd341d371b63a304b5e55abe3c7be
parent 10fe2ae299ee384d572290554e3dff9bf74471d6
1 file changed +6 -0
modified 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");
                    }