Skip to content

Commit

Permalink
style: format code with Gofumpt
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 6e234a2 according to the output
from Gofumpt.

Details: #21
  • Loading branch information
deepsource-autofix[bot] authored May 29, 2024
1 parent 6e234a2 commit 425557b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions quic_clienthello_reconstructor.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ var (
ErrNeedMoreFrames = errors.New("need more CRYPTO frames")
)

const maxCRYPTOFragments = 32
const maxCRYPTOLength = 0x10000 // 10KiB
const (
maxCRYPTOFragments = 32
maxCRYPTOLength = 0x10000 // 10KiB
)

// AddCRYPTOFragment adds a CRYPTO frame fragment to the reconstructor.
// By default, all fragments are saved into an internal map as a pending
Expand Down
8 changes: 5 additions & 3 deletions quic_frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ func (f *CRYPTO) Data() []byte {
type Frame = QUICFrame

// type guards:
var _ QUICFrame = (*PADDING)(nil)
var _ QUICFrame = (*PING)(nil)
var _ QUICFrame = (*CRYPTO)(nil)
var (
_ QUICFrame = (*PADDING)(nil)
_ QUICFrame = (*PING)(nil)
_ QUICFrame = (*CRYPTO)(nil)
)

0 comments on commit 425557b

Please sign in to comment.