Skip to content

Commit

Permalink
Turn off go client retries (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthchr authored Jan 11, 2022
1 parent 27b0a37 commit 2de2082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/internal/genericarmclient/generic_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewGenericClientFromHTTPClient(endpoint arm.Endpoint, creds azcore.TokenCre
opts := &arm.ClientOptions{
ClientOptions: policy.ClientOptions{
Retry: policy.RetryOptions{
MaxRetries: 0,
MaxRetries: -1, // Have to use a value less than 0 means no retries (0 does NOT, 0 gets you 3...)
},
PerCallPolicies: []policy.Policy{NewUserAgentPolicy(userAgent)},
},
Expand Down

0 comments on commit 2de2082

Please sign in to comment.