Expose PeerHandleError::no_connection_possible 2020-05-pre-bindings-cleanups
authorMatt Corallo <git@bluematt.me>
Thu, 14 May 2020 01:25:51 +0000 (21:25 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 22 May 2020 18:28:56 +0000 (14:28 -0400)
Its just a trivial bool and already has docs on it, so seems like
an oversight

lightning/src/ln/peer_handler.rs

index e6160b0e5ec597d76027dc9b61a54ae5d0315fff..009fa73f939e21ace76acb54acd205e56b2fa70a 100644 (file)
@@ -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> {