You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose onion_message items directly rather than via re-exports
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.
Copy file name to clipboardExpand all lines: fuzz/src/onion_message.rs
+3-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ use lightning::sign::{Recipient, KeyMaterial, EntropySource, NodeSigner, SignerP
16
16
use lightning::util::test_channel_signer::TestChannelSigner;
17
17
use lightning::util::logger::Logger;
18
18
use lightning::util::ser::{Readable,Writeable,Writer};
19
-
use lightning::onion_message::{CustomOnionMessageHandler,Destination,MessageRouter,OffersMessage,OffersMessageHandler,OnionMessageContents,OnionMessagePath,OnionMessenger,PendingOnionMessage};
19
+
use lightning::onion_message::messenger::{CustomOnionMessageHandler,Destination,MessageRouter,OnionMessagePath,OnionMessenger,PendingOnionMessage};
20
+
use lightning::onion_message::offers::{OffersMessage,OffersMessageHandler};
21
+
use lightning::onion_message::packet::OnionMessageContents;
0 commit comments