1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-07-29 03:41:11 +03:00

Minor clean up

Summary: Minor clean up

Reviewed By: mjoras

Differential Revision: D35510673

fbshipit-source-id: fcd6982dd49a08ac2c9e2148b1cfd5beec9f49dd
This commit is contained in:
Konstantin Tsoy
2022-06-15 19:03:04 -07:00
committed by Facebook GitHub Bot
parent 6144ea1ded
commit be0cd3dacc

View File

@ -245,7 +245,7 @@ SchedulingResult FrameScheduler::scheduleFramesForPacket(
rstWritten = rstScheduler_->writeRsts(wrapper);
}
// Long time ago we decided RST has higher priority than Acks.
if (ackScheduler_ && ackScheduler_->hasPendingAcks()) {
if (hasPendingAcks()) {
if (cryptoDataWritten || rstWritten) {
// If packet has non ack data, it is subject to congestion control. We
// need to use the wrapper/
@ -317,8 +317,7 @@ void FrameScheduler::writeNextAcks(PacketBuilderInterface& builder) {
}
bool FrameScheduler::hasData() const {
return (ackScheduler_ && ackScheduler_->hasPendingAcks()) ||
hasImmediateData();
return (hasPendingAcks()) || hasImmediateData();
}
bool FrameScheduler::hasPendingAcks() const {