Revert "chore: update quic-go to 0.36.0"

This reverts commit 2284acce94.
This commit is contained in:
Larvan2
2023-06-29 14:24:53 +08:00
parent fa94403629
commit 53f9e1ee71
5 changed files with 25 additions and 24 deletions

View File

@@ -119,8 +119,8 @@ func (c *cubicSender) TimeUntilSend(_ congestion.ByteCount) time.Time {
return c.pacer.TimeUntilSend()
}
func (c *cubicSender) HasPacingBudget(now time.Time) bool {
return c.pacer.Budget(now) >= c.maxDatagramSize
func (c *cubicSender) HasPacingBudget() bool {
return c.pacer.Budget(c.clock.Now()) >= c.maxDatagramSize
}
func (c *cubicSender) maxCongestionWindow() congestion.ByteCount {