clang-format

pull/37099/head
Mark D. Roth 8 months ago
parent 8fdbdf75b8
commit 745409c7a1
  1. 14
      src/core/client_channel/client_channel.cc

@ -710,9 +710,8 @@ class ExternalStateWatcher : public RefCounted<ExternalStateWatcher> {
channel_->event_engine()->RunAfter(timeout, [self = Ref()]() mutable {
ApplicationCallbackExecCtx callback_exec_ctx;
ExecCtx exec_ctx;
self->MaybeStartCompletion(
absl::DeadlineExceededError(
"Timed out waiting for connection state change"));
self->MaybeStartCompletion(absl::DeadlineExceededError(
"Timed out waiting for connection state change"));
// ExternalStateWatcher deletion might require an active ExecCtx.
self.reset();
});
@ -748,7 +747,7 @@ class ExternalStateWatcher : public RefCounted<ExternalStateWatcher> {
// Send CQ completion.
Ref().release(); // Released in FinishedCompletion().
grpc_cq_end_op(cq_, tag_, status, FinishedCompletion, this,
&completion_storage_);
&completion_storage_);
}
// Called when the completion is returned to the CQ.
@ -770,9 +769,10 @@ class ExternalStateWatcher : public RefCounted<ExternalStateWatcher> {
} // namespace
void ClientChannel::WatchConnectivityState(
grpc_connectivity_state state, Timestamp deadline,
grpc_completion_queue* cq, void* tag) {
void ClientChannel::WatchConnectivityState(grpc_connectivity_state state,
Timestamp deadline,
grpc_completion_queue* cq,
void* tag) {
new ExternalStateWatcher(WeakRefAsSubclass<ClientChannel>(), cq, tag, state,
deadline);
}

Loading…
Cancel
Save