Skip to content

added try-catch to handle erros and Promise.all to improve performance #4

Open
MananPatel6902 wants to merge 1 commit intojpmorganchase:mainfrom
MananPatel6902:main
Open

added try-catch to handle erros and Promise.all to improve performance #4
MananPatel6902 wants to merge 1 commit intojpmorganchase:mainfrom
MananPatel6902:main

Conversation

@MananPatel6902
Copy link
Copy Markdown

Error Handling: Wrapped the main logic inside a try-catch block to handle any potential errors and log them.
Concurrency: Used Promise.all to process all files concurrently instead of sequentially, to improve the performance.
Destructuring: Directly destructured metaData in the function parameters to keep the code clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant