Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node/reactor: Bump `LAG_TIMEOUT` to 500 ms
✗ CI failure Lorenz Leutgeb committed 1 month ago
commit ef1d71fc5295787ddccd40d50d7ba632c999dce5
parent 0c7767f647b2497d95dc43e622d05aa9bbcb2583
1 failed (1 total) View logs
1 file changed +3 -3
modified crates/radicle-node/src/reactor.rs
@@ -36,9 +36,9 @@ const WAIT_TIMEOUT: Duration = Duration::from_secs(SECONDS_IN_AN_HOUR);

/// Maximum duration to accept the service to spend handling events (and errors,
/// ticking, etc.) without warning. Set to log whenever the service becomes so
-
/// is so slow to respond that it would not be able to handle at least 10
-
/// "requests" per second, i.e. `1s / 10 = 100ms`.
-
const LAG_TIMEOUT: Duration = Duration::from_millis(100);
+
/// is so slow to respond that it would not be able to handle at least 2
+
/// "requests" per second, i.e. `1s / 2 = 500ms`.
+
const LAG_TIMEOUT: Duration = Duration::from_millis(500);

/// A resource which can be managed by the reactor.
pub trait EventHandler {