Skip to content

Commit 2217813

Browse files
committed
Use uint64 type for packet report sequence numbers
1 parent 42a8e83 commit 2217813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ccfb/history.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var errSequenceNumberWentBackwards = errors.New("sequence number went backwards"
1818
// PacketReport contains departure and arrival information about an acknowledged
1919
// packet.
2020
type PacketReport struct {
21-
SeqNr int64
21+
SeqNr uint64
2222
Size int
2323
Departure time.Time
2424
Arrived bool
@@ -100,7 +100,7 @@ func (h *historyList) getReportForAck(acks []acknowledgement) []PacketReport {
100100
if ok {
101101
if ack, ok := ent.Value.(sentPacket); ok {
102102
reports = append(reports, PacketReport{
103-
SeqNr: sn,
103+
SeqNr: uint64(sn), // nolint:gosec
104104
Size: ack.size,
105105
Departure: ack.departure,
106106
Arrived: pr.arrived,

0 commit comments

Comments
 (0)