mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Remove exception throwing from QuicInteger
Summary: Continuing the theme, removing it from QuicInteger which ends up being in a lot of the write paths. Reviewed By: kvtsoy Differential Revision: D72757026 fbshipit-source-id: 99a6ab2caea8fb495b1cb466172611002968e527
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7dbd219831
commit
b81c086d09
@@ -141,7 +141,7 @@ auto buildEmptyPacket(
|
||||
conn.udpSendPacketLen,
|
||||
std::move(*header),
|
||||
getAckState(conn, pnSpace).largestAckedByPeer.value_or(0));
|
||||
builder.encodePacketHeader();
|
||||
CHECK(!builder.encodePacketHeader().hasError());
|
||||
DCHECK(builder.canBuildPacket());
|
||||
return std::move(builder).buildPacket();
|
||||
}
|
||||
|
Reference in New Issue
Block a user