Skip to content

Commit

Permalink
Clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
yashykt committed Oct 11, 2024
1 parent 52a49cf commit af8f387
Show file tree
Hide file tree
Showing 6 changed files with 534 additions and 267 deletions.
7 changes: 5 additions & 2 deletions src/core/ext/transport/chttp2/server/chttp2_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1163,10 +1163,13 @@ void NewChttp2ServerListener::NewActiveConnection::HandshakingState::
handshake_mgr_.get());
handshake_mgr_->DoHandshake(
std::move(endpoint_), channel_args, deadline_, acceptor_.get(),
[self = Ref()](absl::StatusOr<HandshakerArgs*> result) mutable {
// Using Ref().release() to since there is no guarantee between the order
// of the move and the use of self
[self = Ref().release()](absl::StatusOr<HandshakerArgs*> result) {
self->connection_->work_serializer()->Run(
[self = std::move(self), result]() mutable {
[self, result]() mutable {
self->OnHandshakeDoneLocked(std::move(result));
self->Unref();
},
DEBUG_LOCATION);
});
Expand Down
Loading

0 comments on commit af8f387

Please sign in to comment.