Necessary change after #17219

pull/17278/head
Yash Tibrewal 6 years ago
parent 248e304671
commit 544f2a5abb
  1. 7
      include/grpcpp/impl/codegen/client_unary_call.h

@ -75,7 +75,12 @@ class BlockingUnaryCallImpl {
"No message returned for unary request");
}
} else {
GPR_CODEGEN_ASSERT(!status_.ok());
// Some of the ops failed. For example, this can happen if deserialization
// of the message fails. gRPC Core guarantees that the op
// GRPC_OP_RECV_STATUS_ON_CLIENT always succeeds, so status would still be
// filled.
// TODO(yashykt): If deserialization fails, but the status received is OK,
// then it might be a good idea to change the status to reflect this.
}
}
Status status() { return status_; }

Loading…
Cancel
Save