Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Jan 3, 2024
1 parent 1458756 commit d0d7bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/core/ext/transport/chaotic_good/frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class FrameSerializer {
header_.message_length = msg.length;
header_.message_padding = msg.padding;
output_.data = msg.message->payload()->Copy();
output_.data.Append(Slice::FromStaticBuffer(kZeros, msg.padding));
if (msg.padding != 0) {
output_.data.Append(Slice::FromStaticBuffer(kZeros, msg.padding));
}
}

// If called, must be called before Finish.
Expand Down
2 changes: 0 additions & 2 deletions src/core/lib/transport/transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,6 @@ void ForwardCall(CallHandler call_handler, CallInitiator call_initiator,
call_handler.SpawnGuarded(
"recv_trailing_metadata",
[md = std::move(md), call_handler]() mutable {
gpr_log(GPR_INFO, "Pushing trailing metadata: %s",
md->DebugString().c_str());
return call_handler.PushServerTrailingMetadata(std::move(md));
});
return Empty{};
Expand Down

0 comments on commit d0d7bac

Please sign in to comment.