Skip to content

Commit 68e57c4

Browse files
Aman Sharmameta-codesync[bot]
authored andcommitted
Use toString within QuicClientTransportLite.cpp
Summary: I'm doing this because `QuicBuffer` has the function `toString`, but not `to<std::string>`. For `folly::IOBuf`, the two are equivalent. Note that this is not a change in functionality. Reviewed By: hanidamlaj Differential Revision: D85904332 fbshipit-source-id: ce8e1e4821894b0998a79d9dfbbafc5987b7791d
1 parent fd23d3d commit 68e57c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quic/client/QuicClientTransportLite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ quic::Expected<void, QuicError> QuicClientTransportLite::processUdpPacketData(
657657
}
658658
case QuicFrame::Type::ReadNewTokenFrame: {
659659
ReadNewTokenFrame& newTokenFrame = *quicFrame.asReadNewTokenFrame();
660-
std::string tokenStr = newTokenFrame.token->to<std::string>();
660+
std::string tokenStr = newTokenFrame.token->toString();
661661
VLOG(10) << "client received new token token="
662662
<< quic::hexlify(tokenStr);
663663
if (newTokenCallback_) {

0 commit comments

Comments
 (0)