Skip to content

Commit

Permalink
Use the actual number of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Sep 28, 2021
1 parent 2bed74b commit 5fdcbc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public <T> Iterable<Message<T>> convert(EntryContext context, MessagePayload pay
bufList.add(buf);
final CustomBatchFormat.StringIterable strings = CustomBatchFormat.deserialize(buf);
final Iterator<String> stringIterator = strings.iterator();
final int numMessages = context.getNumMessages();
final int numMessages = strings.size();

return () -> new Iterator<Message<T>>() {
int index = 0;
Expand Down

0 comments on commit 5fdcbc3

Please sign in to comment.