Skip to content

Commit 424fc80

Browse files
mmatczukpires
authored andcommitted
chore(Conn): move Validate below ProxyHeaderPolicy
This field order reflect usage pattern and avoids mixing exported and unexported fields.
1 parent 2cb649e commit 424fc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ type Conn struct {
4343
once sync.Once
4444
readErr error
4545
conn net.Conn
46-
Validate Validator
4746
bufReader *bufio.Reader
4847
header *Header
4948
ProxyHeaderPolicy Policy
49+
Validate Validator
5050
readHeaderTimeout time.Duration
5151
}
5252

0 commit comments

Comments
 (0)