DHT stats in HTTP API
This commit is contained in:
parent
f00f522767
commit
98dff76c40
10 changed files with 111 additions and 62 deletions
|
|
@ -28,6 +28,7 @@ use tokio_stream::wrappers::BroadcastStream;
|
|||
|
||||
#[derive(Debug, Serialize)]
|
||||
pub struct DhtStats {
|
||||
#[serde(serialize_with = "crate::utils::serialize_id20")]
|
||||
pub id: Id20,
|
||||
pub outstanding_requests: usize,
|
||||
pub seen_peers: usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue