mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
FIx
This commit is contained in:
@@ -323,7 +323,7 @@ public class SimpleCanalConnector implements CanalConnector {
|
||||
Packet p = Packet.parseFrom(data);
|
||||
switch (p.getType()) {
|
||||
case MESSAGES: {
|
||||
if (!p.getCompression().equals(Compression.NONE) && !p.getCompression().equals(Compression.COMPRESSIONCOMPATIBLEPROTO2)) {
|
||||
if (!p.getCompression().equals(Compression.COMPRESSIONCOMPATIBLEPROTO2)) {
|
||||
throw new CanalClientException("compression is not supported in this connector");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user