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

feat!: use type-safe variant of Channel and ChannelNumber everywhere. #14

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

datdenkikniet
Copy link
Owner

@datdenkikniet datdenkikniet commented Feb 10, 2024

This deduplicates the places in which we may have (invalid) channel numbers

Since this touches some of the edits you've made (though I am relatively certain I have gotten it right), would appreciate a quick look @richardstephens.

@datdenkikniet datdenkikniet force-pushed the type-safe-channels branch 4 times, most recently from ea9fbac to d344839 Compare February 10, 2024 20:56
Copy link
Owner Author

Choose a reason for hiding this comment

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

Think this was a bad merge: this file was duplicated, and removing it had no discernable effect. Still technically breaking because we had some items from it pub use'd

@datdenkikniet datdenkikniet force-pushed the type-safe-channels branch 2 times, most recently from ef8f16e to 48feaa9 Compare February 11, 2024 10:36
This deduplicates the places in which we may have (invalid) channel numbers

Remove duplicate get_channel_authentication_capabilities.rs

BREAKING CHANGE
@richardstephens
Copy link
Contributor

Thank you for the ping. On review it looks fine however I'm travelling currently and won't be able to test it integrated into our code for a few days.

@datdenkikniet datdenkikniet changed the title feat: use type-safe variant of Channel and ChannelNumber everywhere. feat!: use type-safe variant of Channel and ChannelNumber everywhere. Feb 11, 2024
@richardstephens
Copy link
Contributor

richardstephens commented Feb 16, 2024

I've tried this on a few boxes now and it's worked as expected everywhere. It's worth pointing out that none of the SDRs have a channel number other than 0 though.

@datdenkikniet datdenkikniet merged commit 03c21f7 into main Feb 18, 2024
@datdenkikniet datdenkikniet deleted the type-safe-channels branch February 18, 2024 10:21
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