// Otherwise, we need to look ahead to see if there's more history batches.
if size >= targetSize && idx != len(currHistoryBatches)-1 {
newIterState.NextEventID = firstEventID
return historyBatches, newIterState, nil
}
}
}