Merge commit from fork

This commit is contained in:
ZacharyZcR
2026-07-15 14:55:27 +08:00
committed by GitHub
parent 4b2a60a854
commit e1d1a3e53d
2 changed files with 96 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { statsLogger } from "./logger.js";
import { safeOutboundFetch } from "./safe-outbound-fetch.js";
export interface AlertPayload {
hostName: string;
@@ -36,7 +37,7 @@ async function fetchWithRetry(
options: RequestInit,
): Promise<void> {
const attempt = async () => {
const res = await fetch(url, options);
const res = await safeOutboundFetch(url, options);
if (!res.ok) {
throw new Error(`HTTP ${res.status}: ${res.statusText}`);
}