Skip to content

Commit ddca1ca

Browse files
committed
Make IgnoringMessageHandler and ErroringMessageHandler pub
This is largely useful for bindings, and the off-github discussion around lightningdevkit#814 concluded these should be pub, but the PR was not updated to capture this. Now that the bindings support generation for the structs, expose them.
1 parent 971569b commit ddca1ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use bitcoin::hashes::{HashEngine, Hash};
4242

4343
/// A dummy struct which implements `RoutingMessageHandler` without storing any routing information
4444
/// or doing any processing. You can provide one of these as the route_handler in a MessageHandler.
45-
struct IgnoringMessageHandler{}
45+
pub struct IgnoringMessageHandler{}
4646
impl MessageSendEventsProvider for IgnoringMessageHandler {
4747
fn get_and_clear_pending_msg_events(&self) -> Vec<MessageSendEvent> { Vec::new() }
4848
}
@@ -67,7 +67,7 @@ impl Deref for IgnoringMessageHandler {
6767

6868
/// A dummy struct which implements `ChannelMessageHandler` without having any channels.
6969
/// You can provide one of these as the route_handler in a MessageHandler.
70-
struct ErroringMessageHandler {
70+
pub struct ErroringMessageHandler {
7171
message_queue: Mutex<Vec<MessageSendEvent>>
7272
}
7373
impl ErroringMessageHandler {

0 commit comments

Comments
 (0)