mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove unused variable sndNxtList.
PiperOrigin-RevId: 302110328
This commit is contained in:
@@ -878,7 +878,6 @@ func (e *endpoint) handleWrite() *tcpip.Error {
|
||||
first := e.sndQueue.Front()
|
||||
if first != nil {
|
||||
e.snd.writeList.PushBackList(&e.sndQueue)
|
||||
e.snd.sndNxtList.UpdateForward(e.sndBufInQueue)
|
||||
e.sndBufInQueue = 0
|
||||
}
|
||||
|
||||
|
||||
@@ -126,10 +126,6 @@ type sender struct {
|
||||
// sndNxt is the sequence number of the next segment to be sent.
|
||||
sndNxt seqnum.Value
|
||||
|
||||
// sndNxtList is the sequence number of the next segment to be added to
|
||||
// the send list.
|
||||
sndNxtList seqnum.Value
|
||||
|
||||
// rttMeasureSeqNum is the sequence number being used for the latest RTT
|
||||
// measurement.
|
||||
rttMeasureSeqNum seqnum.Value
|
||||
@@ -229,7 +225,6 @@ func newSender(ep *endpoint, iss, irs seqnum.Value, sndWnd seqnum.Size, mss uint
|
||||
sndWnd: sndWnd,
|
||||
sndUna: iss + 1,
|
||||
sndNxt: iss + 1,
|
||||
sndNxtList: iss + 1,
|
||||
rto: 1 * time.Second,
|
||||
rttMeasureSeqNum: iss + 1,
|
||||
lastSendTime: time.Now(),
|
||||
|
||||
Reference in New Issue
Block a user