-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor curlHelper.cpp to handle API request retries
- Refactored curlHelper.cpp to handle API request retries in case of failures. Added a retry loop to attempt the API call multiple times. - Added error handling and logging to detect and handle API errors in the response. - Implemented a sleep timer between retries to avoid rate limiting. - If the number of API errors exceeds a certain threshold, the retry loop is terminated. - Exception handling for any errors that occur within the retry loop has been implemented.
- Loading branch information
swiftraccoon
committed
Nov 14, 2023
1 parent
9986d06
commit 6c08ad7
Showing
1 changed file
with
46 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters