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

about "hrotti.PersistStore.Delete"? #13

Open
MarsYong opened this issue May 15, 2017 · 0 comments
Open

about "hrotti.PersistStore.Delete"? #13

MarsYong opened this issue May 15, 2017 · 0 comments

Comments

@MarsYong
Copy link

hello alsm,
in the "/hrotti/client",I have a doubt,when func Recive( ), recive a message, first use ReadPacket(c.conn), when ReadPacket(c.conn) , the func "NewControlPacketWithHeader(fh)" in the ReadPacket() will be get a NEW uuid value;
then when msg.(type)=*PubackPacket ,the func "hrotti.PersistStore.Delete(c.clientID, OUTBOUND, pa.UUID())" is pa.UUID()= the func "NewControlPacketWithHeader(fh)" get the NEW uuid value, is that right? the real record can be deleted ? I look forward to your answer!
In addition ,when msg.(type)=*PubcompPacket,why do you delete “hrotti.PersistStore.Delete(c, OUTBOUND, pc.UUID)”??

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

No branches or pull requests

1 participant