From 373ec39b9955a7023e3dc70569d457715237871d Mon Sep 17 00:00:00 2001 From: Lance7in Date: Tue, 27 Sep 2016 16:22:37 +0800 Subject: [PATCH] Updated ClientExample (markdown) --- ClientExample.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ClientExample.md b/ClientExample.md index 40b2cde..6c06e29 100644 --- a/ClientExample.md +++ b/ClientExample.md @@ -63,8 +63,8 @@ public class SimpleCanalClientExample { connector.connect(); connector.subscribe(".*\\..*"); connector.rollback(); - int totalEmtryCount = 120; - while (emptyCount < totalEmtryCount) { + int totalEmptyCount = 120; + while (emptyCount < totalEmptyCount) { Message message = connector.getWithoutAck(batchSize); // 获取指定数量的数据 long batchId = message.getId(); int size = message.getEntries().size();