pull/36509/head
Craig Tiller 11 months ago
parent aa079085a9
commit 8f16c7a8f4
  1. 2
      src/core/lib/transport/interception_chain.h
  2. 4
      src/core/server/server.cc

@ -188,7 +188,7 @@ class InterceptionChainBuilder final {
} }
void Fail(absl::Status status) { void Fail(absl::Status status) {
GPR_ASSERT(!status.ok()); CHECK(!status.ok()) << status;
if (status_.ok()) status_ = std::move(status); if (status_.ok()) status_ = std::move(status);
} }

@ -978,7 +978,7 @@ grpc_error_handle Server::SetupTransport(
connections_.emplace(std::move(t)); connections_.emplace(std::move(t));
++connections_open_; ++connections_open_;
} else { } else {
GPR_ASSERT(transport->filter_stack_transport() != nullptr); CHECK(transport->filter_stack_transport() != nullptr);
absl::StatusOr<OrphanablePtr<Channel>> channel = LegacyChannel::Create( absl::StatusOr<OrphanablePtr<Channel>> channel = LegacyChannel::Create(
"", args.SetObject(transport), GRPC_SERVER_CHANNEL); "", args.SetObject(transport), GRPC_SERVER_CHANNEL);
if (!channel.ok()) { if (!channel.ok()) {
@ -1387,7 +1387,7 @@ void Server::ChannelData::InitTransport(RefCountedPtr<Server> server,
} }
// Start accept_stream transport op. // Start accept_stream transport op.
grpc_transport_op* op = grpc_make_transport_op(nullptr); grpc_transport_op* op = grpc_make_transport_op(nullptr);
GPR_ASSERT(transport->filter_stack_transport() != nullptr); CHECK(transport->filter_stack_transport() != nullptr);
op->set_accept_stream = true; op->set_accept_stream = true;
op->set_accept_stream_fn = AcceptStream; op->set_accept_stream_fn = AcceptStream;
op->set_registered_method_matcher_fn = [](void* arg, op->set_registered_method_matcher_fn = [](void* arg,

Loading…
Cancel
Save