From: Arik Sosman Date: Thu, 20 Feb 2020 01:57:03 +0000 (-0800) Subject: Remove unused code in peer handler test utility method. X-Git-Tag: v0.0.12~127^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d9e1f983239aae28ce546f02ee038842ac9a4de1;p=rust-lightning Remove unused code in peer handler test utility method. --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 5fb2cdbde..6effe5433 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1185,7 +1185,6 @@ mod tests { fn establish_connection<'a>(peer_a: &PeerManager, peer_b: &PeerManager) { let secp_ctx = Secp256k1::new(); let a_id = PublicKey::from_secret_key(&secp_ctx, &peer_a.our_node_secret); - //let b_id = PublicKey::from_secret_key(&secp_ctx, &peer_b.our_node_secret); let mut fd_a = FileDescriptor { fd: 1, outbound_data: Arc::new(Mutex::new(Vec::new())) }; let mut fd_b = FileDescriptor { fd: 1, outbound_data: Arc::new(Mutex::new(Vec::new())) }; let initial_data = peer_b.new_outbound_connection(a_id, fd_b.clone()).unwrap();