Skip to content

Commit

Permalink
chore(Conn): move Validate below ProxyHeaderPolicy
Browse files Browse the repository at this point in the history
This field order reflect usage pattern and avoids mixing exported and unexported fields.
  • Loading branch information
mmatczuk authored and pires committed Oct 8, 2024
1 parent 2cb649e commit 424fc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ type Conn struct {
once sync.Once
readErr error
conn net.Conn
Validate Validator
bufReader *bufio.Reader
header *Header
ProxyHeaderPolicy Policy
Validate Validator
readHeaderTimeout time.Duration
}

Expand Down

0 comments on commit 424fc80

Please sign in to comment.