diff options
author | ncteisen <ncteisen@gmail.com> | 2018-09-10 14:03:40 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-09-10 14:03:40 -0700 |
commit | 6ef3b0dc2b4d1c339a0a44b3c2e9f9f8654b7acf (patch) | |
tree | ce7afae717479e9a2196ccdd96419fb9dff34e85 /src/cpp/server/health/default_health_check_service.cc | |
parent | f1931ef624640fbeb8e113d2e64bf6162d4dc0a7 (diff) | |
parent | 107d10ea73f77dc9bb498c9b91e1fcd0188dfb45 (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into channelz-cpp-server
Diffstat (limited to 'src/cpp/server/health/default_health_check_service.cc')
-rw-r--r-- | src/cpp/server/health/default_health_check_service.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpp/server/health/default_health_check_service.cc b/src/cpp/server/health/default_health_check_service.cc index 670da63a4a..fc3db1bba7 100644 --- a/src/cpp/server/health/default_health_check_service.cc +++ b/src/cpp/server/health/default_health_check_service.cc @@ -289,13 +289,13 @@ void DefaultHealthCheckService::HealthCheckServiceImpl::CheckCallHandler:: grpc::Status status = Status::OK; ByteBuffer response; if (!service_->DecodeRequest(request_, &service_name)) { - status = Status(INVALID_ARGUMENT, ""); + status = Status(StatusCode::INVALID_ARGUMENT, ""); } else { ServingStatus serving_status = database_->GetServingStatus(service_name); if (serving_status == NOT_FOUND) { status = Status(StatusCode::NOT_FOUND, "service name unknown"); } else if (!service_->EncodeResponse(serving_status, &response)) { - status = Status(INTERNAL, ""); + status = Status(StatusCode::INTERNAL, ""); } } // Send response. @@ -389,7 +389,7 @@ void DefaultHealthCheckService::HealthCheckServiceImpl::WatchCallHandler:: CallableTag(std::bind(&WatchCallHandler::OnFinishDone, this, std::placeholders::_1, std::placeholders::_2), std::move(self)); - stream_.Finish(Status(INVALID_ARGUMENT, ""), &on_finish_done_); + stream_.Finish(Status(StatusCode::INVALID_ARGUMENT, ""), &on_finish_done_); call_state_ = FINISH_CALLED; return; } @@ -431,7 +431,7 @@ void DefaultHealthCheckService::HealthCheckServiceImpl::WatchCallHandler:: CallableTag(std::bind(&WatchCallHandler::OnFinishDone, this, std::placeholders::_1, std::placeholders::_2), std::move(self)); - stream_.Finish(Status(INTERNAL, ""), &on_finish_done_); + stream_.Finish(Status(StatusCode::INTERNAL, ""), &on_finish_done_); return; } next_ = CallableTag(std::bind(&WatchCallHandler::OnSendHealthDone, this, |