MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / formatTimeout

Function formatTimeout

packages/plugins/graphql/src/sdk/invoke.ts:26–27  ·  view source on GitHub ↗
(timeoutMs: number)

Source from the content-addressed store, hash-verified

24}
25
26const formatTimeout = (timeoutMs: number): string =>
27 timeoutMs % 1_000 === 0 ? `${timeoutMs / 1_000}s` : `${timeoutMs}ms`;
28
29const invocationTimeoutMessage = (timeoutMs: number): string =>
30 `GraphQL upstream did not complete within ${formatTimeout(timeoutMs)}. The request was aborted. Retry the operation or verify that the endpoint is responsive.`;

Callers 1

invocationTimeoutMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected