Skip to content

Commit

Permalink
[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_AS…
Browse files Browse the repository at this point in the history
…SERT
  • Loading branch information
tanvi-jagtap committed Apr 28, 2024
1 parent 4b1809e commit 45449ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ class GrpcPolledFdWindows : public GrpcPolledFd {
shutdown_called_);
grpc_core::CSliceUnref(read_buf_);
grpc_core::CSliceUnref(write_buf_);
CHECK_EQ(read_closure_, nullptr);
CHECK_EQ(write_closure_, nullptr);
CHECK(read_closure_ == nullptr);
CHECK(write_closure_ == nullptr);
if (!shutdown_called_) {
winsocket_->Shutdown(DEBUG_LOCATION, "~GrpcPolledFdWindows");
}
}

void RegisterForOnReadableLocked(
absl::AnyInvocable<void(absl::Status)> read_closure) override {
CHECK_EQ(read_closure_, nullptr);
CHECK(read_closure_ == nullptr);
read_closure_ = std::move(read_closure);
grpc_core::CSliceUnref(read_buf_);
CHECK(!read_buf_has_data_);
Expand All @@ -167,7 +167,7 @@ class GrpcPolledFdWindows : public GrpcPolledFd {
"connect_done_: %d",
GetName(), tcp_write_state_, connect_done_);
}
CHECK_EQ(write_closure_, nullptr);
CHECK(write_closure_ == nullptr);
write_closure_ = std::move(write_closure);
if (!connect_done_) {
CHECK(!pending_continue_register_for_on_writeable_locked_);
Expand Down

0 comments on commit 45449ea

Please sign in to comment.