forked from Azure/azure-sdk-for-go
-
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.
Reuse http client used with ASM API (Azure#3858)
* Reuse the http client for ASM calls. Throttle retries when ServiceUnavailable responses are received * code cleanup:- Removed the only other occurence in sendAzureRequest() since the httpClient was already setup in makeClient(). Removed the nil check inside the function as the parameter is passed in as a value type. * Reverted the change as it was inadvertent during testing * Code improvements. Use the configurable Poll interval and check for both service unavaialbe and throttling messages
- Loading branch information
1 parent
82a3481
commit 5c287d1
Showing
2 changed files
with
16 additions
and
8 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