Skip to content

Commit

Permalink
Added axios retry logic when fetching remote chunk from url (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielRicaud authored Apr 7, 2023
1 parent fe6ee59 commit e2e7d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tdf3/src/utils/chunkers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type AnyTdfStream, isAnyTdfStream } from '../client/tdf-stream.js';
import axiosRetry from 'axios-retry';

// @ts-ignore
axiosRetry(axios, { retries: 3 }); // Retries all idempotent requests (GET, HEAD, OPTIONS, PUT, DELETE)
axiosRetry(axios, { retries: 3, retryDelay: axiosRetry.exponentialDelay }); // Retries all idempotent requests (GET, HEAD, OPTIONS, PUT, DELETE)

/**
* Read data from a seekable stream.
Expand Down

0 comments on commit e2e7d04

Please sign in to comment.