Skip to content

Conversation

@Antreesy
Copy link
Collaborator

So this should already return a last known line in the file, there is no need for $iterator->next() to be called again

- when requesting getLastItem(), logIteratorFactory->getLogIterator() creates a new LogIterator(), which in construct calls $this->rewind() -> $this->next(). So this should already return a last known line in the file, there is no need for $iterator->next() to be called again

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants