Return after triggering callback with empty result
### Motivation
While this doesn't appear to affect the correctness, we should just return empty after we trigger the callback.
@@ -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
