network: fix Compress flag, it's the first bit (index 0)

This commit is contained in:
Roman Khimov 2020-06-18 11:30:07 +03:00
parent 0002b65238
commit 39fd799992

View file

@ -40,8 +40,8 @@ type MessageFlag byte
// Possible message flags
const (
None MessageFlag = 0
Compressed MessageFlag = 1 << iota
None MessageFlag = 0
)
// CommandType represents the type of a message command.