Skip to content

Commit

Permalink
pass ct in ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem committed Jan 8, 2025
1 parent c56f0a3 commit 5977f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebJobs.Script.Grpc/Server/RetryProxyHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
catch (TaskCanceledException) when (cancellationToken.IsCancellationRequested)
{
_logger.LogDebug("Request was canceled. Stopping retries.");
throw new OperationCanceledException();
throw new OperationCanceledException(cancellationToken);
}
catch (HttpRequestException) when (attemptCount < MaxRetries)
{
Expand Down

0 comments on commit 5977f65

Please sign in to comment.