]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused code in peer handler test utility method.
authorArik Sosman <git@arik.io>
Thu, 20 Feb 2020 01:57:03 +0000 (17:57 -0800)
committerArik Sosman <git@arik.io>
Thu, 20 Feb 2020 01:57:03 +0000 (17:57 -0800)
lightning/src/ln/peer_handler.rs

index 5fb2cdbdeab0e4c2c3ed7605dc722d7bcd594434..6effe5433774035a8d6398b3d03517b9c51e5060 100644 (file)
@@ -1185,7 +1185,6 @@ mod tests {
        fn establish_connection<'a>(peer_a: &PeerManager<FileDescriptor, &'a test_utils::TestChannelMessageHandler>, peer_b: &PeerManager<FileDescriptor, &'a test_utils::TestChannelMessageHandler>) {
                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();