diff --git a/src/cli.ts b/src/cli.ts index e69c8eeb..184cec4f 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -350,8 +350,8 @@ async function callEnqueueAndParse( pageOptions: pageOptions, allWords: predictParams.allWords, cropper: predictParams.cropper, - initialDelaySec: 4, - delaySec: 2, + initialDelaySec: 2, + delaySec: 1.5, maxRetries: 60, }); } else { @@ -359,8 +359,8 @@ async function callEnqueueAndParse( pageOptions: pageOptions, allWords: predictParams.allWords, cropper: predictParams.cropper, - initialDelaySec: 4, - delaySec: 2, + initialDelaySec: 2, + delaySec: 1.5, maxRetries: 60, }); if (!response.document) { diff --git a/src/client.ts b/src/client.ts index d254c9f3..337a3ee2 100644 --- a/src/client.ts +++ b/src/client.ts @@ -286,10 +286,10 @@ export class Client { newAsyncParams.maxRetries ??= 60; if (newAsyncParams.delaySec < minDelaySec) { - throw Error(`Cannot set auto-parsing delay to less than ${minDelaySec} seconds.`); + throw Error(`Cannot set auto-parsing delay to less than ${minDelaySec} second(s).`); } if (newAsyncParams.initialDelaySec < minInitialDelay) { - throw Error(`Cannot set initial parsing delay to less than ${minInitialDelay} seconds.`); + throw Error(`Cannot set initial parsing delay to less than ${minInitialDelay} second(s).`); } if (newAsyncParams.maxRetries < minRetries) { throw Error(`Cannot set retry to less than ${minRetries}.`); @@ -318,8 +318,8 @@ export class Client { fullText: undefined, cropper: undefined, pageOptions: undefined, - initialDelaySec: 4, - delaySec: 2, + initialDelaySec: 2, + delaySec: 1.5, maxRetries: 60, initialTimerOptions: undefined, recurringTimerOptions: undefined,