forked from quic-go/quic-go
remove unused SendAlgorithmWithDebugInfo from congestion package
This commit is contained in:
@@ -63,7 +63,6 @@ type cubicSender struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _ SendAlgorithm = &cubicSender{}
|
var _ SendAlgorithm = &cubicSender{}
|
||||||
var _ SendAlgorithmWithDebugInfo = &cubicSender{}
|
|
||||||
|
|
||||||
// NewCubicSender makes a new cubic sender
|
// NewCubicSender makes a new cubic sender
|
||||||
func NewCubicSender(clock Clock, rttStats *RTTStats, reno bool, initialCongestionWindow, initialMaxCongestionWindow protocol.ByteCount) *cubicSender {
|
func NewCubicSender(clock Clock, rttStats *RTTStats, reno bool, initialCongestionWindow, initialMaxCongestionWindow protocol.ByteCount) *cubicSender {
|
||||||
|
|||||||
@@ -16,16 +16,3 @@ type SendAlgorithm interface {
|
|||||||
OnPacketLost(number protocol.PacketNumber, lostBytes protocol.ByteCount, priorInFlight protocol.ByteCount)
|
OnPacketLost(number protocol.PacketNumber, lostBytes protocol.ByteCount, priorInFlight protocol.ByteCount)
|
||||||
OnRetransmissionTimeout(packetsRetransmitted bool)
|
OnRetransmissionTimeout(packetsRetransmitted bool)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SendAlgorithmWithDebugInfo adds some debug functions to SendAlgorithm
|
|
||||||
type SendAlgorithmWithDebugInfo interface {
|
|
||||||
SendAlgorithm
|
|
||||||
BandwidthEstimate() Bandwidth
|
|
||||||
|
|
||||||
// Stuff only used in testing
|
|
||||||
|
|
||||||
HybridSlowStart() *HybridSlowStart
|
|
||||||
SlowstartThreshold() protocol.ByteCount
|
|
||||||
RenoBeta() float32
|
|
||||||
InRecovery() bool
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user