mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
Telemetry per node (#7463)
This commit is contained in:
@@ -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