Skip to content

Commit 54eb187

Browse files
fix(client): check response status when MaxRetries = 0
1 parent f90e3ae commit 54eb187

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Orb/OrbClient.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,6 @@ public async Task<HttpResponse> Execute<T>(
182182
where T : ParamsBase
183183
{
184184
var maxRetries = this.MaxRetries ?? ClientOptions.DefaultMaxRetries;
185-
if (maxRetries <= 0)
186-
{
187-
return await ExecuteOnce(request, cancellationToken).ConfigureAwait(false);
188-
}
189-
190185
var retries = 0;
191186
while (true)
192187
{

0 commit comments

Comments
 (0)