Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

no storeInflightPackets when persistClient #175

Merged
merged 3 commits into from
Jul 14, 2014
Merged

Conversation

mocheng
Copy link
Contributor

@mocheng mocheng commented Jul 13, 2014

Closes #173.

@mcollina
Copy link
Collaborator

There is much more to clean up, you can remove the storeInflightPackets from everywhere.

client.handleAuthorizeSubscribe = function(err, success, s, cb) {
return cb(null, true);
};

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why you needed this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The unit test run into server.restoreClientSubscriptions which require client has a handleAuthorizeSubscribe method.

https://github.com/mcollina/mosca/blob/master/lib/persistence/abstract.js#L97-L101

@mcollina
Copy link
Collaborator

Off topic:
You can set an issue to auto-close when this is merge by saying in the desc Closes #173. Go ahead an change your thing! You can also use a tool like gh to attach a pull-request to an issue.

mcollina added a commit that referenced this pull request Jul 14, 2014
no storeInflightPackets when persistClient
@mcollina mcollina merged commit e1b2c9c into moscajs:master Jul 14, 2014
@mocheng mocheng deleted the fix_173 branch July 14, 2014 10:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storeInflightPackets creates duplicate saved content
2 participants