Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added missing callbacks in the commit() #776

Merged
merged 2 commits into from
Oct 13, 2017
Merged

Conversation

vigneshnrfs
Copy link
Contributor

Added missing callback function in the code.

This is needed when stream.close() function is called and subsequent clean up happens.

@@ -78,7 +78,7 @@ class ConsumerGroupStream extends Readable {

if (this.committing && !force) {
logger.debug('skipping committing');
return;
return callback && callback();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we explicitly pass in null arg here?

@@ -94,7 +94,7 @@ class ConsumerGroupStream extends Readable {

if (_.isEmpty(commits)) {
logger.debug('commit ignored. no commits to make.');
return;
return callback && callback();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here as well.

Copy link
Collaborator

@hyperlink hyperlink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@vigneshnrfs
Copy link
Contributor Author

@hyperlink Made the changes. Thanks.

@hyperlink hyperlink merged commit efe8337 into SOHU-Co:master Oct 13, 2017
@hyperlink
Copy link
Collaborator

Thanks again.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants