Skip to content

Commit

Permalink
Fix grpc benchmark cancellation (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored Oct 5, 2022
1 parent 240c139 commit 0dcd4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perf/benchmarkapps/GrpcClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ private static async Task ServerStreamingCall(CancellationTokenSource cts, int c

var client = new BenchmarkService.BenchmarkServiceClient(_channels[connectionId]);
var callOptions = CreateCallOptions();
callOptions.WithCancellationToken(cts.Token);
callOptions = callOptions.WithCancellationToken(cts.Token);
using var call = client.StreamingFromServer(CreateSimpleRequest(), callOptions);

while (!cts.IsCancellationRequested)
Expand Down

0 comments on commit 0dcd4d1

Please sign in to comment.