Combine const declarations into one block
This commit is contained in:
@ -138,8 +138,10 @@ type msgFixedHeader struct {
|
|||||||
// EOF is returned with nil msg and 0 pf if the entire stream is done. Other
|
// EOF is returned with nil msg and 0 pf if the entire stream is done. Other
|
||||||
// non-nil error is returned if something is wrong on reading.
|
// non-nil error is returned if something is wrong on reading.
|
||||||
func (p *parser) recvMsg() (pf payloadFormat, msg []byte, err error) {
|
func (p *parser) recvMsg() (pf payloadFormat, msg []byte, err error) {
|
||||||
const headerSize = 5
|
const (
|
||||||
const formatIndex = 1
|
headerSize = 5
|
||||||
|
formatIndex = 1
|
||||||
|
)
|
||||||
|
|
||||||
var hdr msgFixedHeader
|
var hdr msgFixedHeader
|
||||||
var buf [headerSize]byte
|
var buf [headerSize]byte
|
||||||
|
Reference in New Issue
Block a user