-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor StoreTailer.readingDocument #1414
base: develop
Are you sure you want to change the base?
Conversation
Kudos, SonarCloud Quality Gate passed! |
149451e
to
d44dd6e
Compare
Quality Gate passedIssues Measures |
this.lastReadIndex = this.index(); | ||
return context; | ||
// An entry has been found, prepare the context and return it. | ||
if (next && (context.wire() != null)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice we went from if (wire != null && context.present(next))
to if (next && context.wire() != null)
I can see that context.present(...)
just returns the value passed in but it also has the side-effect 🤮 of setting the present
field in the context.
Is that change significant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see it happens in init now. Much nicer.
Refactoring made during benchmarking session focusing on tailer throughput. The following differences were observed between this branch and develop during benchmarking:
This feature branch does the following:
#1415