Skip to content

Commit

Permalink
small change for c++ readability
Browse files Browse the repository at this point in the history
Signed-off-by: ZhouyihaiDing <ddyihai@google.com>
  • Loading branch information
ZhouyihaiDing committed Aug 19, 2019
1 parent 9352c0b commit 1aa2211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/common/router/router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1024,12 +1024,12 @@ void Filter::onUpstreamHeaders(uint64_t response_code, Http::HeaderMapPtr&& head

modify_headers_(*headers);

if (!grpc_request_) {
upstream_request.upstream_host_->outlierDetector().putHttpResponseCode(response_code);
} else {
if (grpc_request_) {
http_status_code_ = response_code;
absl::optional<Grpc::Status::GrpcStatus> grpc_status = Grpc::Common::getGrpcStatus(*headers);
maybeSetGrpcStatusToOutlierDetection(upstream_request, grpc_status);
} else {
upstream_request.upstream_host_->outlierDetector().putHttpResponseCode(response_code);
}

if (headers->EnvoyImmediateHealthCheckFail() != nullptr) {
Expand Down

0 comments on commit 1aa2211

Please sign in to comment.