MCPcopy
hub / github.com/di-sukharev/opencommit / onRetry

Method onRetry

out/cli.cjs:58283–58301  ·  view source on GitHub ↗
(err2)

Source from the content-addressed store, hash-verified

58281 this.retryOpts.retry(
58282 err,
58283 {
58284 state: { counter: this.retryCount++, currentTimeout: this.retryAfter },
58285 opts: { retryOptions: this.retryOpts, ...this.opts }
58286 },
58287 onRetry.bind(this)
58288 );
58289 function onRetry(err2) {
58290 if (err2 != null || this.aborted || isDisturbed(this.opts.body)) {
58291 return this.handler.onError(err2);
58292 }
58293 if (this.start !== 0) {
58294 this.opts = {
58295 ...this.opts,
58296 headers: {
58297 ...this.opts.headers,
58298 range: `bytes=${this.start}-${this.end ?? ""}`
58299 }
58300 };
58301 }
58302 try {
58303 this.dispatch(this.opts, this);
58304 } catch (err3) {

Callers

nothing calls this directly

Calls 3

isDisturbedFunction · 0.85
dispatchMethod · 0.80
onErrorMethod · 0.45

Tested by

no test coverage detected