Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Dec 9, 2024
1 parent 64e76c4 commit 5bd3247
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Grpc.HealthCheck/HealthServiceImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public override Task<HealthCheckResponse> Check(HealthCheckRequest request, Serv
public override async Task Watch(HealthCheckRequest request, IServerStreamWriter<HealthCheckResponse> responseStream, ServerCallContext context)
{
// The call has already been canceled. Writing to the response will fail so immediately exit.
// In the real world this situation is unlikely to happen as the server would have prevented a canceled call from making it this far.
if (context.CancellationToken.IsCancellationRequested)
{
return;
Expand Down

0 comments on commit 5bd3247

Please sign in to comment.