From dd976352388f6cc44c9196841edd164a662370be Mon Sep 17 00:00:00 2001 From: Adam Bollen Date: Wed, 2 Oct 2024 07:55:38 -0700 Subject: [PATCH] Removing superfluous await based on profiling findings --- Fauna/Core/Connection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fauna/Core/Connection.cs b/Fauna/Core/Connection.cs index 5216ece8..2d284a7b 100644 --- a/Fauna/Core/Connection.cs +++ b/Fauna/Core/Connection.cs @@ -35,8 +35,8 @@ public async Task 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