fix: polish feishu retry helper (#43788) (thanks @lefarcen)

This commit is contained in:
Peter Steinberger
2026-03-24 16:52:55 -07:00
parent b9f48707dc
commit 3664c2ce46

View File

@@ -623,7 +623,10 @@ function registerEventHandlers(
// instead of silently hitting the probe error cache.
const BOT_IDENTITY_RETRY_DELAYS_MS = [60_000, 120_000, 300_000, 600_000, 900_000];
export function waitForAbortableDelay(delayMs: number, abortSignal?: AbortSignal): Promise<boolean> {
export function waitForAbortableDelay(
delayMs: number,
abortSignal?: AbortSignal,
): Promise<boolean> {
if (abortSignal?.aborted) {
return Promise.resolve(false);
}