Skip to content

Commit 5dd83d1

Browse files
committed
Update utils.ts
1 parent 76a35f5 commit 5dd83d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mcp-server/src/mcp/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export async function fetch_with_timeout(
33
timeout_ms: number = 10000,
44
): Promise<Response> {
55
try {
6-
const response = await fetch(url, { signal: AbortSignal.timeout(timeoutMs) });
6+
const response = await fetch(url, { signal: AbortSignal.timeout(timeout_ms) });
77
return response;
88
} catch (error) {
99
if (error instanceof Error && error.name === 'AbortError') {
10-
throw new Error(`Request timed out after ${timeoutMs}ms`);
10+
throw new Error(`Request timed out after ${timeout_ms}ms`);
1111
}
1212
throw error;
1313
}

0 commit comments

Comments
 (0)