Skip to content

Commit

Permalink
ackhandler: embed the receivedPacketHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 30, 2024
1 parent 953dae4 commit aae6d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ackhandler/received_packet_tracker.go
Expand Up @@ -14,14 +14,14 @@ import (
type receivedPacketTracker struct {
ect0, ect1, ecnce uint64

packetHistory *receivedPacketHistory
packetHistory receivedPacketHistory

lastAck *wire.AckFrame
hasNewAck bool // true as soon as we received an ack-eliciting new packet
}

func newReceivedPacketTracker() *receivedPacketTracker {
return &receivedPacketTracker{packetHistory: newReceivedPacketHistory()}
return &receivedPacketTracker{packetHistory: *newReceivedPacketHistory()}
}

func (h *receivedPacketTracker) ReceivedPacket(pn protocol.PacketNumber, ecn protocol.ECN, rcvTime time.Time, ackEliciting bool) error {
Expand Down

0 comments on commit aae6d3a

Please sign in to comment.