diff --git a/src/server.ts b/src/server.ts index 12a5eae69d..99005fc6ed 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1026,7 +1026,9 @@ async function main(): Promise { drainInFlight = false; } }; - void drainRelay(); + void drainRelay().catch((error) => + captureError(error, { kind: "orb_relay_drain" }), + ); // 30s matches broker-client's request timeout so a slow/degraded broker's in-flight drain has fully // timed out (or completed) before the next tick would otherwise pile another request on top of it. setInterval(