From 39fd7999923ef8bf79fd2e048101ccdc58de5aa3 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 18 Jun 2020 11:30:07 +0300 Subject: [PATCH] network: fix Compress flag, it's the first bit (index 0) --- pkg/network/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/network/message.go b/pkg/network/message.go index 6e1f55091..b77e1054f 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -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.