-
Notifications
You must be signed in to change notification settings - Fork 627
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
Conversation
lib/consumerGroupStream.js
Outdated
@@ -78,7 +78,7 @@ class ConsumerGroupStream extends Readable { | |||
|
|||
if (this.committing && !force) { | |||
logger.debug('skipping committing'); | |||
return; | |||
return callback && callback(); |
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.
can we explicitly pass in null
arg here?
lib/consumerGroupStream.js
Outdated
@@ -94,7 +94,7 @@ class ConsumerGroupStream extends Readable { | |||
|
|||
if (_.isEmpty(commits)) { | |||
logger.debug('commit ignored. no commits to make.'); | |||
return; | |||
return callback && callback(); |
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.
here as well.
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.
Thanks for your contribution.
@hyperlink Made the changes. Thanks. |
Thanks again. |
Added missing callback function in the code.
This is needed when stream.close() function is called and subsequent clean up happens.