Remove unecessary `connect` qualifier

pull/150/head
Franck Royer 4 years ago
parent e26629b593
commit dbc633ea06
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

@ -56,8 +56,8 @@ pub struct SwapFactory {
peer_id: PeerId, peer_id: PeerId,
db_path: PathBuf, db_path: PathBuf,
alice_connect_address: Multiaddr, alice_address: Multiaddr,
alice_connect_peer_id: PeerId, alice_peer_id: PeerId,
pub bitcoin_wallet: Arc<bitcoin::Wallet>, pub bitcoin_wallet: Arc<bitcoin::Wallet>,
pub monero_wallet: Arc<monero::Wallet>, pub monero_wallet: Arc<monero::Wallet>,
@ -70,8 +70,8 @@ impl SwapFactory {
swap_id: Uuid, swap_id: Uuid,
bitcoin_wallet: Arc<bitcoin::Wallet>, bitcoin_wallet: Arc<bitcoin::Wallet>,
monero_wallet: Arc<monero::Wallet>, monero_wallet: Arc<monero::Wallet>,
alice_connect_address: Multiaddr, alice_address: Multiaddr,
alice_connect_peer_id: PeerId, alice_peer_id: PeerId,
) -> Self { ) -> Self {
let identity = network::Seed::new(seed).derive_libp2p_identity(); let identity = network::Seed::new(seed).derive_libp2p_identity();
let peer_id = identity.public().into_peer_id(); let peer_id = identity.public().into_peer_id();
@ -81,8 +81,8 @@ impl SwapFactory {
identity, identity,
peer_id, peer_id,
db_path, db_path,
alice_connect_address, alice_address,
alice_connect_peer_id, alice_peer_id,
bitcoin_wallet, bitcoin_wallet,
monero_wallet, monero_wallet,
} }
@ -156,8 +156,8 @@ impl SwapFactory {
bob_transport, bob_transport,
bob_behaviour, bob_behaviour,
self.peer_id.clone(), self.peer_id.clone(),
self.alice_connect_peer_id.clone(), self.alice_peer_id.clone(),
self.alice_connect_address.clone(), self.alice_address.clone(),
) )
} }
} }

Loading…
Cancel
Save