Skip to content

Commit

Permalink
f print a warning when we are not able to connect
Browse files Browse the repository at this point in the history
This is helping to debug a problem with the errors
that we the httpd is returning that it is not an
json error.

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Feb 10, 2025
1 parent 7b299ac commit b7c6019
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lampod/src/ln/peer_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ impl LampoPeerManager {
pub async fn connect(&self, node_id: NodeId, host: SocketAddr) -> error::Result<()> {
let Some(close_callback) = net::connect_outbound(self.manager(), node_id, host).await
else {
log::warn!("impossible connect with the peer `{node_id}`");
error::bail!("impossible connect with the peer `{node_id}`");
};
let mut connection_closed_future = Box::pin(close_callback);
Expand Down

0 comments on commit b7c6019

Please sign in to comment.