diff options
author | 2015-08-28 14:35:49 -0700 | |
---|---|---|
committer | 2015-08-28 14:35:49 -0700 | |
commit | bff9cf52ed6407862ce96ddfdcd8e97e56cdc520 (patch) | |
tree | adcefb4d7740776b4e44a57336308c31dc0ef099 /src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs | |
parent | 6afe53f2360a20a4d3abda60cfdde576c29b9857 (diff) | |
parent | 808e5ae95f2fba44d2da925e8da0eaa5ce5c6585 (diff) |
Merge branch 'master' into tracing_api
Diffstat (limited to 'src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs')
-rw-r--r-- | src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs b/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs index 8c04b43a86..26c6445c35 100644 --- a/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs +++ b/src/csharp/Grpc.HealthCheck/HealthServiceImpl.cs @@ -105,8 +105,8 @@ namespace Grpc.HealthCheck { lock (myLock) { - var host = request.HasHost ? request.Host : ""; - var service = request.HasService ? request.Service : ""; + var host = request.Host; + var service = request.Service; HealthCheckResponse.Types.ServingStatus status; if (!statusMap.TryGetValue(CreateKey(host, service), out status)) @@ -114,7 +114,7 @@ namespace Grpc.HealthCheck // TODO(jtattermusch): returning specific status from server handler is not supported yet. throw new RpcException(new Status(StatusCode.NotFound, "")); } - return Task.FromResult(HealthCheckResponse.CreateBuilder().SetStatus(status).Build()); + return Task.FromResult(new HealthCheckResponse { Status = status }); } } |