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

Pub ack #83

Closed
wants to merge 49 commits into from
Closed

Pub ack #83

wants to merge 49 commits into from

Conversation

real-bombinho
Copy link
Contributor

Suggestion as per discussion.

It solves duplicate packets

Copy link
Owner

@hsaturn hsaturn left a comment

Choose a reason for hiding this comment

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

I could agree wth this PR, anyway, this kind of change needs some unit tests. I'm on another issue now writing a set of unit tests for issues.

@real-bombinho
Copy link
Contributor Author

real-bombinho commented May 6, 2023

I have altered the PR to include the fix for #84 already. This might save you having to test twice. The fix for #84 was borrowed from this PR anyway, I just had originally kept the bit manipulation out your code as I was not sure if the omission was intentionally. The revised PR has the fix moved up a few lines to take effect in the earlier code too and corrected a mistake I had made (&& instead of &).

Instead of using PublishID() it would also be possible to fetch the ID bytes straight from [payload], this would prevent misuse of PublishID() out of context.

@hsaturn
Copy link
Owner

hsaturn commented May 10, 2023

Thans for the PR, I'm closing it but have reflected changes with a unit test in 90435b1

@hsaturn hsaturn closed this May 10, 2023
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.

None yet

2 participants