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

Publish client sub #7

Merged
merged 4 commits into from
Jul 17, 2017
Merged

Publish client sub #7

merged 4 commits into from
Jul 17, 2017

Conversation

behrad
Copy link
Contributor

@behrad behrad commented Jul 14, 2017

CachedPersistence#_waitFor interface is changed!
I couldn't keep it unchanged, since all children should now call _waitFor only once!

Copy link
Collaborator

@mcollina mcollina left a 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))
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done! 👍

@behrad
Copy link
Contributor Author

behrad commented Jul 14, 2017

I don't think anything related to aedes-persistence interface is touched.
Let me check the mongo-persistence repo...

@behrad
Copy link
Contributor Author

behrad commented Jul 14, 2017

@mcollina cached-persistence children are no longer needed to call _waitFor
It is currently handled inside _added/_removedSuscription.

@behrad
Copy link
Contributor Author

behrad commented Jul 15, 2017

Can you check this now alongside moscajs/aedes-persistence-redis#34 & moscajs/aedes-persistence-mongodb#9 @mcollina ?

@behrad
Copy link
Contributor Author

behrad commented Jul 16, 2017

Any updates on this?

@mcollina mcollina merged commit 9773d4e into moscajs:master Jul 17, 2017
@behrad
Copy link
Contributor Author

behrad commented Jul 17, 2017

👍 great

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