提交 734e7484 编写于 作者: M Matteo Merli 提交者: Sijie Guo

Return after triggering callback with empty result (#5500)

### Motivation

While this doesn't appear to affect the correctness, we should just return empty after we trigger the callback.
上级 467ffab1
......@@ -1046,6 +1046,7 @@ public class ManagedCursorImpl implements ManagedCursor {
List<Entry> entries = Lists.newArrayListWithExpectedSize(positions.size());
if (positions.isEmpty()) {
callback.readEntriesComplete(entries, ctx);
return Collections.emptySet();
}
// filters out messages which are already acknowledged
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册