Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
jagankumar-egov and coderabbitai[bot] authored Dec 9, 2024
1 parent 406451e commit 33a103f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const uploadInChunks = async (messages: any, chunkSize: any, tenantId: any, requ
success = true; // Mark as successful
break;
} catch (error: any) {
logger.info(`retrying chunk ${Math.floor(i / chunkSize) + 1}, Attempt ${retries}`)
retries += 1;
logger.info(`Retrying chunk ${Math.floor(i / chunkSize) + 1}, Attempt ${retries}`);
logger.error(
`Error uploading chunk ${Math.floor(i / chunkSize) + 1}, Attempt ${retries}: ${error.message}`
);
Expand Down

0 comments on commit 33a103f

Please sign in to comment.