& lt; 修改为 <

puff
2018-02-26 09:27:36 +08:00
parent bdfefcfd87
commit b72a62124d

@@ -64,7 +64,7 @@ public class SimpleCanalClientExample {
connector.subscribe(".*\\..*");
connector.rollback();
int totalEmptyCount = 120;
while (emptyCount &lt; totalEmptyCount) {
while (emptyCount < totalEmptyCount) {
Message message = connector.getWithoutAck(batchSize); // 获取指定数量的数据
long batchId = message.getId();
int size = message.getEntries().size();