Skip to content

Commit 49a3662

Browse files
committed
Clean up handshake timeout disconnection log message
It currently reads "disconnected from peer which hasn't completed handshake due to ping timeout", which is confusing. Instead, it will now read "disconnected from peer which hasn't completed handshake due to ping/handshake timeout"
1 parent 61c22c5 commit 49a3662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
21032103
if let Some((node_id, _)) = peer.their_node_id {
21042104
self.node_id_to_descriptor.lock().unwrap().remove(&node_id);
21052105
}
2106-
self.do_disconnect(descriptor, &*peer, "ping timeout");
2106+
self.do_disconnect(descriptor, &*peer, "ping/handshake timeout");
21072107
}
21082108
}
21092109
}

0 commit comments

Comments
 (0)