chore: lower gate guard drop logging threshold to 100ms (#7862)

We have some 1001ms cases, which do not yield gate guard context.
This commit is contained in:
Joonas Koivunen
2024-05-24 16:07:58 +03:00
committed by GitHub
parent 1455f5a261
commit a3f5b83677

View File

@@ -135,7 +135,8 @@ impl Gate {
let started_at = std::time::Instant::now();
let mut do_close = std::pin::pin!(self.do_close());
let nag_after = Duration::from_secs(1);
// with 1s we rarely saw anything, let's try if we get more gate closing reasons with 100ms
let nag_after = Duration::from_millis(100);
let Err(_timeout) = tokio::time::timeout(nag_after, &mut do_close).await else {
return;