Skip to content

Commit

Permalink
Merge pull request quic-go#3108 from lucas-clemente/avoid-packet-type…
Browse files Browse the repository at this point in the history
…-confusion

avoid type confusion between protocol.PacketType and logging.PacketType
  • Loading branch information
marten-seemann authored Apr 2, 2021
2 parents 8c388e0 + e9b4f9b commit 0c42736
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions internal/mocks/logging/connection_tracer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/mocks/logging/tracer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions logging/mock_connection_tracer_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion logging/mock_tracer_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions logging/types.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package logging

import "github.com/lucas-clemente/quic-go/internal/protocol"

// PacketType is the packet type of a QUIC packet
type PacketType = protocol.PacketType
type PacketType uint8

const (
// PacketTypeInitial is the packet type of an Initial packet
Expand Down

0 comments on commit 0c42736

Please sign in to comment.