MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / getUserAgent

Method getUserAgent

out/cli.cjs:69855–69857  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69853 calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries) {
69854 const initialRetryDelay = 0.5;
69855 const maxRetryDelay = 8;
69856 const numRetries = maxRetries - retriesRemaining;
69857 const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
69858 const jitter = 1 - Math.random() * 0.25;
69859 return sleepSeconds * jitter * 1e3;
69860 }

Callers 1

defaultHeadersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected