mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 05:37:36 +03:00
parent
bb24be8281
commit
c8b7246159
3 changed files with 9 additions and 5 deletions
|
@ -47,9 +47,7 @@ type sentPacketHandler struct {
|
|||
}
|
||||
|
||||
// NewSentPacketHandler creates a new sentPacketHandler
|
||||
func NewSentPacketHandler() SentPacketHandler {
|
||||
rttStats := &congestion.RTTStats{}
|
||||
|
||||
func NewSentPacketHandler(rttStats *congestion.RTTStats) SentPacketHandler {
|
||||
congestion := congestion.NewCubicSender(
|
||||
congestion.DefaultClock{},
|
||||
rttStats,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue