mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 23:15:42 +00:00
Companion for paritytech/substrate#13592 (#6869)
* Move configs
* Start using `NetworkService` traits from `sc-network`
* Fix stuff
* Remove `sc-network-common` as dependency
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -12,7 +12,6 @@ gum = { package = "tracing-gum", path = "../../gum" }
|
||||
polkadot-primitives = { path = "../../../primitives" }
|
||||
parity-scale-codec = { version = "3.3.0", default-features = false, features = ["derive"] }
|
||||
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sc-network-common = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
polkadot-node-metrics = { path = "../../metrics"}
|
||||
polkadot-node-network-protocol = { path = "../protocol" }
|
||||
|
||||
@@ -22,13 +22,9 @@ use futures::{prelude::*, stream::BoxStream};
|
||||
use parity_scale_codec::Encode;
|
||||
|
||||
use sc_network::{
|
||||
multiaddr::Multiaddr, Event as NetworkEvent, IfDisconnected, NetworkService, OutboundFailure,
|
||||
RequestFailure,
|
||||
};
|
||||
use sc_network_common::{
|
||||
config::parse_addr,
|
||||
protocol::ProtocolName,
|
||||
service::{NetworkEventStream, NetworkNotification, NetworkPeers, NetworkRequest},
|
||||
config::parse_addr, multiaddr::Multiaddr, types::ProtocolName, Event as NetworkEvent,
|
||||
IfDisconnected, NetworkEventStream, NetworkNotification, NetworkPeers, NetworkRequest,
|
||||
NetworkService, OutboundFailure, RequestFailure,
|
||||
};
|
||||
|
||||
use polkadot_node_network_protocol::{
|
||||
@@ -193,8 +189,9 @@ impl Network for Arc<NetworkService<Block, Hash>> {
|
||||
match pending_response
|
||||
.send(Err(RequestFailure::Network(OutboundFailure::DialFailure)))
|
||||
{
|
||||
Err(_) =>
|
||||
gum::debug!(target: LOG_TARGET, "Sending failed request response failed."),
|
||||
Err(_) => {
|
||||
gum::debug!(target: LOG_TARGET, "Sending failed request response failed.")
|
||||
},
|
||||
Ok(_) => {},
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user