-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Publish client sub #7
Conversation
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.
Are you think in other breaking changes to aedes-persistence?
Would you minding firing a PR for https://github.com/mcollina/aedes-persistence-mongodb as well?
index.js
Outdated
topic: newSubTopic, | ||
brokerPublish: brokerPublish | ||
} | ||
ctx.brokerPublish(subs, addedSubDone.bind(ctx)) |
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.
bind is slow in Node 4 and 6, would you mind using an arrow function or a closure?
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.
done! 👍
I don't think anything related to aedes-persistence interface is touched. |
@mcollina |
Can you check this now alongside moscajs/aedes-persistence-redis#34 & moscajs/aedes-persistence-mongodb#9 @mcollina ? |
Any updates on this? |
👍 great |
CachedPersistence#_waitFor
interface is changed!I couldn't keep it unchanged, since all children should now call _waitFor only once!