mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 22:41:06 +00:00
Telemetry per node (#7463)
This commit is contained in:
@@ -48,8 +48,6 @@ sc-client-api = { version = "2.0.0", path = "../api" }
|
||||
sc-peerset = { version = "2.0.0", path = "../peerset" }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
serde_json = "1.0.41"
|
||||
slog = { version = "2.5.2", features = ["nested-values"] }
|
||||
slog_derive = "0.2.0"
|
||||
smallvec = "1.5.0"
|
||||
sp-arithmetic = { version = "2.0.0", path = "../../primitives/arithmetic" }
|
||||
sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" }
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
use libp2p::{core::ConnectedPoint, Multiaddr};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use slog_derive::SerdeValue;
|
||||
use std::{collections::{HashMap, HashSet}, time::Duration};
|
||||
|
||||
/// Returns general information about the networking.
|
||||
@@ -30,7 +29,7 @@ use std::{collections::{HashMap, HashSet}, time::Duration};
|
||||
/// Meant for general diagnostic purposes.
|
||||
///
|
||||
/// **Warning**: This API is not stable.
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, SerdeValue)]
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct NetworkState {
|
||||
/// PeerId of the local node.
|
||||
|
||||
@@ -52,8 +52,9 @@ use libp2p::{
|
||||
};
|
||||
use std::{
|
||||
borrow::Cow, collections::{hash_map::Entry, HashMap}, convert::TryFrom as _, io, iter,
|
||||
pin::Pin, task::{Context, Poll}, time::{Duration, Instant},
|
||||
pin::Pin, task::{Context, Poll}, time::Duration,
|
||||
};
|
||||
use wasm_timer::Instant;
|
||||
|
||||
pub use libp2p::request_response::{InboundFailure, OutboundFailure, RequestId};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user