mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
run varcheck in gometalinter
This commit is contained in:
parent
cda87e5db2
commit
b6c41464c6
3 changed files with 1 additions and 5 deletions
|
@ -8,6 +8,7 @@
|
|||
"Enable": [
|
||||
"deadcode",
|
||||
"ineffassign",
|
||||
"varcheck",
|
||||
"vet"
|
||||
],
|
||||
"Linters": {
|
||||
|
|
|
@ -27,8 +27,6 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
nChromeRetries = 8
|
||||
|
||||
dataLen = 500 * 1024 // 500 KB
|
||||
dataLongLen = 50 * 1024 * 1024 // 50 MB
|
||||
)
|
||||
|
|
|
@ -6,7 +6,6 @@ import (
|
|||
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/lucas-clemente/quic-go/internal/ackhandler"
|
||||
"github.com/lucas-clemente/quic-go/internal/flowcontrol"
|
||||
"github.com/lucas-clemente/quic-go/internal/handshake"
|
||||
"github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
"github.com/lucas-clemente/quic-go/internal/wire"
|
||||
|
@ -57,7 +56,6 @@ var _ = Describe("Packet packer", func() {
|
|||
packer *packetPacker
|
||||
publicHeaderLen protocol.ByteCount
|
||||
maxFrameSize protocol.ByteCount
|
||||
cryptoStream cryptoStreamI
|
||||
mockStreamFramer *MockStreamFrameSource
|
||||
)
|
||||
|
||||
|
@ -65,7 +63,6 @@ var _ = Describe("Packet packer", func() {
|
|||
version := versionGQUICFrames
|
||||
mockSender := NewMockStreamSender(mockCtrl)
|
||||
mockSender.EXPECT().onHasStreamData(gomock.Any()).AnyTimes()
|
||||
cryptoStream = newCryptoStream(mockSender, flowcontrol.NewStreamFlowController(version.CryptoStreamID(), false, flowcontrol.NewConnectionFlowController(1000, 1000, nil), 1000, 1000, 1000, nil), version)
|
||||
mockStreamFramer = NewMockStreamFrameSource(mockCtrl)
|
||||
|
||||
packer = newPacketPacker(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue