Skip to content

Commit

Permalink
Removing superfluous await based on profiling findings
Browse files Browse the repository at this point in the history
  • Loading branch information
adambollen committed Oct 2, 2024
1 parent 4250505 commit dd97635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fauna/Core/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public async Task<HttpResponseMessage> DoPostAsync(
HttpResponseMessage response;
{
var policyResult = await _cfg.RetryConfiguration.RetryPolicy
.ExecuteAndCaptureAsync(async () =>
await _cfg.HttpClient.SendAsync(CreateHttpRequest(path, body, headers), cancel))
.ExecuteAndCaptureAsync(() =>
_cfg.HttpClient.SendAsync(CreateHttpRequest(path, body, headers), cancel))
.ConfigureAwait(false);
response = policyResult.Outcome == OutcomeType.Successful
? policyResult.Result
Expand Down

0 comments on commit dd97635

Please sign in to comment.