-
Notifications
You must be signed in to change notification settings - Fork 385
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
Expose onion_message
items directly rather than via re-exports
#2821
Expose onion_message
items directly rather than via re-exports
#2821
Conversation
81b4fe3
to
eec1923
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2821 +/- ##
==========================================
+ Coverage 88.43% 89.27% +0.84%
==========================================
Files 114 114
Lines 91957 96071 +4114
Branches 91957 96071 +4114
==========================================
+ Hits 81326 85772 +4446
+ Misses 8115 7870 -245
+ Partials 2516 2429 -87 ☔ View full report in Codecov by Sentry. |
eec1923
to
7cc2413
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fuzz code needs updating, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending CI
When we originally added the `onion_message` module, there weren't a lot of public items in it, and it didn't make a lot of sense to export the whole sub-module structure publicly. So, instead, we exported the public items via re-exports directly in the `onion_message` top-level module. However, as time went on, more and more things entered the module, which left the top-level module rather cluttered. Worse, in 0.0.119, we exposed `onion_message::messenger::SendSuccess` via the return type of `send_message`, but forgot to re-export the enum itself, making it impossible to actually use from external code. Here we address both issues and simply replace the re-export with the underlying sub-module structure.
91dae2e
to
ab66143
Compare
Squashed without changes. |
When we originally added the
onion_message
module, there weren't a lot of public items in it, and it didn't make a lot of sense to export the whole sub-module structure publicly. So, instead, we exported the public items via re-exports directly in theonion_message
top-level module. However, as time went on, more and more things entered the module, which left the top-level module rather cluttered.Worse, in 0.0.119, we exposed
onion_message::messenger::SendSuccess
via the return type ofsend_message
, but forgot to re-export the enum itself, making it impossible to actually use from external code.Here we address both issues and simply replace the re-export with the underlying sub-module structure.