MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / withRetry

Function withRetry

packages/db/src/clickhouse/client.ts:258–265  ·  view source on GitHub ↗
(
  operation: (
    client: ClickHouseClient,
    ctx: { url: string; index: number }
  ) => Promise<T>
)

Source from the content-addressed store, hash-verified

256 * (useful for adding `host` to log lines / metrics).
257 */
258export async function withRetry<T>(
259 operation: (
260 client: ClickHouseClient,
261 ctx: { url: string; index: number }
262 ) => Promise<T>
263): Promise<T> {
264 return withRoundRobinRetry(picker, operation, logger);
265}
266
267/** Best-effort URL → hostname extraction for log labels. */
268function urlHostname(url: string | undefined): string | undefined {

Callers 2

client.tsFile · 0.85
chQueryWithMetaFunction · 0.85

Calls 1

withRoundRobinRetryFunction · 0.90

Tested by

no test coverage detected