remove unused handshakeComplete member variable from sent packet handler

This commit is contained in:
Marten Seemann
2019-05-29 13:07:05 +01:00
parent 0da133d7db
commit 195bdc9944
2 changed files with 1 additions and 7 deletions

View File

@@ -59,8 +59,7 @@ type sentPacketHandler struct {
congestion congestion.SendAlgorithmWithDebugInfos
rttStats *congestion.RTTStats
handshakeComplete bool
maxAckDelay time.Duration
maxAckDelay time.Duration
// The number of times the crypto packets have been retransmitted without receiving an ack.
cryptoCount uint32
@@ -125,7 +124,6 @@ func (h *sentPacketHandler) SetHandshakeComplete() {
}
}
h.retransmissionQueue = queue
h.handshakeComplete = true
}
func (h *sentPacketHandler) SetMaxAckDelay(mad time.Duration) {

View File

@@ -808,10 +808,6 @@ var _ = Describe("SentPacketHandler", func() {
})
Context("crypto packets", func() {
BeforeEach(func() {
handler.handshakeComplete = false
})
It("detects the crypto timeout", func() {
now := time.Now()
sendTime := now.Add(-time.Minute)