mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 21:25:41 +00:00
committed by
Arkadiy Paronyan
parent
de168ca034
commit
4dfa17ab37
@@ -495,8 +495,13 @@ fn init_thread(
|
|||||||
|
|
||||||
trace!(target: "sub-libp2p", "Dialing bootnode {:?}", peer_id);
|
trace!(target: "sub-libp2p", "Dialing bootnode {:?}", peer_id);
|
||||||
for proto in shared.protocols.read().0.clone().into_iter() {
|
for proto in shared.protocols.read().0.clone().into_iter() {
|
||||||
open_peer_custom_proto(shared.clone(), transport.clone(),
|
open_peer_custom_proto(
|
||||||
proto, peer_id.clone(), &swarm_controller)
|
shared.clone(),
|
||||||
|
transport.clone(),
|
||||||
|
proto,
|
||||||
|
peer_id.clone(),
|
||||||
|
&swarm_controller
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -843,8 +848,7 @@ fn start_kademlia_discovery<T, To, St, C>(shared: Arc<Shared>, transport: T,
|
|||||||
.for_each({
|
.for_each({
|
||||||
let shared = shared.clone();
|
let shared = shared.clone();
|
||||||
move |_| {
|
move |_| {
|
||||||
connect_to_nodes(shared.clone(), transport.clone(),
|
connect_to_nodes(shared.clone(), transport.clone(), &swarm_controller);
|
||||||
&swarm_controller);
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -940,8 +944,13 @@ fn connect_to_nodes<T, To, St, C>(
|
|||||||
// should automatically open multiple substreams.
|
// should automatically open multiple substreams.
|
||||||
trace!(target: "sub-libp2p", "Ensuring connection to {:?}", peer);
|
trace!(target: "sub-libp2p", "Ensuring connection to {:?}", peer);
|
||||||
for proto in shared.protocols.read().0.clone().into_iter() {
|
for proto in shared.protocols.read().0.clone().into_iter() {
|
||||||
open_peer_custom_proto(shared.clone(), base_transport.clone(),
|
open_peer_custom_proto(
|
||||||
proto, peer.clone(), swarm_controller)
|
shared.clone(),
|
||||||
|
base_transport.clone(),
|
||||||
|
proto,
|
||||||
|
peer.clone(),
|
||||||
|
swarm_controller
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,8 +57,7 @@ pub fn build_transport(
|
|||||||
|
|
||||||
TransportTimeout::new(base, Duration::from_secs(20))
|
TransportTimeout::new(base, Duration::from_secs(20))
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
debug!(target: "sub-libp2p", "Error in base transport \
|
debug!(target: "sub-libp2p", "Error in base transport layer: {:?}", err);
|
||||||
layer: {:?}", err);
|
|
||||||
err
|
err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user