keep bytesInFlight as protocol.ByteCount

This commit is contained in:
Lucas Clemente
2016-05-06 12:59:32 +02:00
parent aa46fa06a0
commit 02ab3480ff
5 changed files with 28 additions and 28 deletions

View File

@@ -35,7 +35,7 @@ type sentPacketHandler struct {
retransmissionQueue []*Packet // ToDo: use better data structure
stopWaitingManager StopWaitingManager
bytesInFlight uint64
bytesInFlight protocol.ByteCount
}
// NewSentPacketHandler creates a new sentPacketHandler
@@ -194,6 +194,6 @@ func (h *sentPacketHandler) DequeuePacketForRetransmission() (packet *Packet) {
return packet
}
func (h *sentPacketHandler) BytesInFlight() uint64 {
func (h *sentPacketHandler) BytesInFlight() protocol.ByteCount {
return h.bytesInFlight
}