Skip to content
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

Add batch#offsetLagLow #405

Merged
merged 5 commits into from
Jun 24, 2019
Merged

Add batch#offsetLagLow #405

merged 5 commits into from
Jun 24, 2019

Conversation

tulios
Copy link
Owner

@tulios tulios commented Jun 24, 2019

batch#offsetLag returns the lag based on the latest offset in the batch which usually isn't what most users want, so to keep the event backward compatible I'm adding batch#offsetLagLow which calculates the lag based on the first offset in the batch

The current offsetLag methods returns the lag based on the latest offset 
in the batch, the low version returns the lag based on the first offset
@tulios tulios requested a review from Nevon June 24, 2019 16:33
@tulios tulios merged commit 73b806e into master Jun 24, 2019
@tulios tulios deleted the add-offset-lag-low branch June 24, 2019 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants