forked from quic-go/quic-go
pass the current timestamp to the pacer instead of calling time.Now() (#3824)
This commit is contained in:
@@ -20,7 +20,7 @@ type SentPacketHandler interface {
|
||||
SetHandshakeConfirmed()
|
||||
|
||||
// The SendMode determines if and what kind of packets can be sent.
|
||||
SendMode() SendMode
|
||||
SendMode(now time.Time) SendMode
|
||||
// TimeUntilSend is the time when the next packet should be sent.
|
||||
// It is used for pacing packets.
|
||||
TimeUntilSend() time.Time
|
||||
|
||||
Reference in New Issue
Block a user