simplify pruning of old ACK ranges

This commit is contained in:
Marten Seemann 2020-02-20 18:49:22 +07:00
parent f317a471bb
commit a5fc72047e
11 changed files with 94 additions and 50 deletions

View file

@ -17,6 +17,6 @@ func NewAckHandler(
logger utils.Logger,
version protocol.VersionNumber,
) (SentPacketHandler, ReceivedPacketHandler) {
return newSentPacketHandler(initialPacketNumber, rttStats, pers, traceCallback, qlogger, logger),
newReceivedPacketHandler(rttStats, logger, version)
sph := newSentPacketHandler(initialPacketNumber, rttStats, pers, traceCallback, qlogger, logger)
return sph, newReceivedPacketHandler(sph, rttStats, logger, version)
}