We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a8e83 commit 2217813Copy full SHA for 2217813
pkg/ccfb/history.go
@@ -18,7 +18,7 @@ var errSequenceNumberWentBackwards = errors.New("sequence number went backwards"
18
// PacketReport contains departure and arrival information about an acknowledged
19
// packet.
20
type PacketReport struct {
21
- SeqNr int64
+ SeqNr uint64
22
Size int
23
Departure time.Time
24
Arrived bool
@@ -100,7 +100,7 @@ func (h *historyList) getReportForAck(acks []acknowledgement) []PacketReport {
100
if ok {
101
if ack, ok := ent.Value.(sentPacket); ok {
102
reports = append(reports, PacketReport{
103
- SeqNr: sn,
+ SeqNr: uint64(sn), // nolint:gosec
104
Size: ack.size,
105
Departure: ack.departure,
106
Arrived: pr.arrived,
0 commit comments