Skip to content

Commit 5bd3247

Browse files
committed
Comment
1 parent 64e76c4 commit 5bd3247

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Grpc.HealthCheck/HealthServiceImpl.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public override Task<HealthCheckResponse> Check(HealthCheckRequest request, Serv
142142
public override async Task Watch(HealthCheckRequest request, IServerStreamWriter<HealthCheckResponse> responseStream, ServerCallContext context)
143143
{
144144
// The call has already been canceled. Writing to the response will fail so immediately exit.
145+
// In the real world this situation is unlikely to happen as the server would have prevented a canceled call from making it this far.
145146
if (context.CancellationToken.IsCancellationRequested)
146147
{
147148
return;

0 commit comments

Comments
 (0)