mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 14:50:02 +00:00
style: format probe-cleanup retry code (oxfmt)
This commit is contained in:
@@ -2186,8 +2186,6 @@ describe("closeOrphanedProbeForRetry (probe cleanup before verify-triggered retr
|
|||||||
await closeOrphanedProbeForRetry(stubSession, closer, log, "streaming");
|
await closeOrphanedProbeForRetry(stubSession, closer, log, "streaming");
|
||||||
|
|
||||||
expect(log.warn).toHaveBeenCalledTimes(1);
|
expect(log.warn).toHaveBeenCalledTimes(1);
|
||||||
expect((log.warn.mock.calls[0][1] as { error: string }).error).toBe(
|
expect((log.warn.mock.calls[0][1] as { error: string }).error).toBe("string-only rejection");
|
||||||
"string-only rejection",
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1487,10 +1487,9 @@ export async function closeOrphanedProbeForRetry(
|
|||||||
try {
|
try {
|
||||||
await closer(probe);
|
await closer(probe);
|
||||||
} catch (closeErr) {
|
} catch (closeErr) {
|
||||||
log.warn(
|
log.warn(`[Render] probe close before ${retryContext} retry failed; continuing with retry`, {
|
||||||
`[Render] probe close before ${retryContext} retry failed; continuing with retry`,
|
error: closeErr instanceof Error ? closeErr.message : String(closeErr),
|
||||||
{ error: closeErr instanceof Error ? closeErr.message : String(closeErr) },
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user