We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4cbb1 commit de3fdb4Copy full SHA for de3fdb4
src/lib/utils.ts
@@ -39,11 +39,13 @@ export const constants = {
39
TRANSFER_HASH_ALGORITHM: 'sha256',
40
REST_API_CALL_MAX_ATTEMPTS: 5,
41
REST_API_CALL_RETRY_DELAY_MS: 500,
42
+ REST_API_CALL_REQUEST_TIMEOUT: 1000,
43
MAX_EVENT_QUEUE_SIZE: 1000,
44
HASH_HEADER_NAME: 'dx-hash',
45
LAST_UPDATE_HEADER_NAME: 'dx-last-update'
46
};
-const log = new Logger('utils.ts')
47
+const log = new Logger('utils.ts');
48
+axios.defaults.timeout = constants.REST_API_CALL_REQUEST_TIMEOUT;
49
50
export const regexp = {
51
FILE_KEY: /^(\/[a-z0-9\+\-\_\.]+)+$/i,
0 commit comments