Remove the `peer_disconnected` `no_connection_possible` flag
[rust-lightning] / lightning-net-tokio / src / lib.rs
index b259f77eff8f9ace67fec3b2a666122b0ae3c12a..58d3d0a8addb137e66a968f7a24e58d1accc710a 100644 (file)
@@ -643,7 +643,7 @@ mod tests {
                fn handle_update_fee(&self, _their_node_id: &PublicKey, _msg: &UpdateFee) {}
                fn handle_announcement_signatures(&self, _their_node_id: &PublicKey, _msg: &AnnouncementSignatures) {}
                fn handle_channel_update(&self, _their_node_id: &PublicKey, _msg: &ChannelUpdate) {}
-               fn peer_disconnected(&self, their_node_id: &PublicKey, _no_connection_possible: bool) {
+               fn peer_disconnected(&self, their_node_id: &PublicKey) {
                        if *their_node_id == self.expected_pubkey {
                                self.disconnected_flag.store(true, Ordering::SeqCst);
                                self.pubkey_disconnected.clone().try_send(()).unwrap();