瀏覽代碼

Merge pull request #46 from Shopify/change_compression_mask

Compression codec is only two bits, not three.
Evan Huus 12 年之前
父節點
當前提交
117abb5d34
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      message.go

+ 2 - 2
message.go

@@ -10,8 +10,8 @@ import (
 // CompressionCodec represents the various compression codecs recognized by Kafka in messages.
 type CompressionCodec int8
 
-// only the last three bits are really used
-const compressionCodecMask int8 = 0x07
+// only the last two bits are really used
+const compressionCodecMask int8 = 0x03
 
 const (
 	CompressionNone   CompressionCodec = 0