diff --git a/pgproto3/backend.go b/pgproto3/backend.go index 492c0f306..28cff049a 100644 --- a/pgproto3/backend.go +++ b/pgproto3/backend.go @@ -39,9 +39,7 @@ type Backend struct { terminate Terminate bodyLen int - maxBodyLen int - // maxBodyLen is the maximum length of a message body in octets. - // If a message body exceeds this length, Receive will return an error. + maxBodyLen int // maxBodyLen is the maximum length of a message body in octets. If a message body exceeds this length, Receive will return an error. msgType byte partialMsg bool authType uint32 diff --git a/pgproto3/frontend.go b/pgproto3/frontend.go index a2b9d366a..056e547cd 100644 --- a/pgproto3/frontend.go +++ b/pgproto3/frontend.go @@ -54,9 +54,7 @@ type Frontend struct { portalSuspended PortalSuspended bodyLen int - maxBodyLen int - // maxBodyLen is the maximum length of a message body in octets. - // If a message body exceeds this length, Receive will return an error. + maxBodyLen int // maxBodyLen is the maximum length of a message body in octets. If a message body exceeds this length, Receive will return an error. msgType byte partialMsg bool authType uint32