From 5bd32471771f9cd44e986e285fc839974d441ab5 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Mon, 9 Dec 2024 12:13:20 +0800 Subject: [PATCH] Comment --- src/Grpc.HealthCheck/HealthServiceImpl.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Grpc.HealthCheck/HealthServiceImpl.cs b/src/Grpc.HealthCheck/HealthServiceImpl.cs index cad4fc397..4dc6bf84c 100644 --- a/src/Grpc.HealthCheck/HealthServiceImpl.cs +++ b/src/Grpc.HealthCheck/HealthServiceImpl.cs @@ -142,6 +142,7 @@ public override Task Check(HealthCheckRequest request, Serv public override async Task Watch(HealthCheckRequest request, IServerStreamWriter 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;