-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: retain http.Client config when retries are enabled (#157)
This commit includes changes to the BaseService functionality so that enabling automatic retries will not cause the loss of any existing http.Client instance that might be set on the BaseService. A user can now use BaseService.SetHTTPClient() to set a custom client instance with or without retries being enabled. Also, the BaseService.GetHTTPClient() method was introduced which will return the correct http.Client instance regardless of whether retries are enabled or not.
- Loading branch information
Showing
3 changed files
with
252 additions
and
109 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
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
Oops, something went wrong.