From ba06507a4f8e69111348b7025a09a0b3455d9c25 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 13 May 2020 21:25:51 -0400 Subject: [PATCH] Expose PeerHandleError::no_connection_possible Its just a trivial bool and already has docs on it, so seems like an oversight --- lightning/src/ln/peer_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index e6160b0e5..009fa73f9 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -86,7 +86,7 @@ pub trait SocketDescriptor : cmp::Eq + hash::Hash + Clone { pub struct PeerHandleError { /// Used to indicate that we probably can't make any future connections to this peer, implying /// we should go ahead and force-close any channels we have with it. - no_connection_possible: bool, + pub no_connection_possible: bool, } impl fmt::Debug for PeerHandleError { fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { -- 2.39.5