chore: update quic-go to 0.36.0

This commit is contained in:
wwqgtxx
2023-06-26 12:08:38 +08:00
committed by Larvan2
parent 29315ce8e5
commit 26f97b45d6
5 changed files with 24 additions and 25 deletions

View File

@ -49,8 +49,8 @@ func (b *BrutalSender) TimeUntilSend(bytesInFlight congestion.ByteCount) time.Ti
return b.pacer.TimeUntilSend()
}
func (b *BrutalSender) HasPacingBudget() bool {
return b.pacer.Budget(time.Now()) >= b.maxDatagramSize
func (b *BrutalSender) HasPacingBudget(now time.Time) bool {
return b.pacer.Budget(now) >= b.maxDatagramSize
}
func (b *BrutalSender) CanSend(bytesInFlight congestion.ByteCount) bool {