summaryrefslogtreecommitdiffstats
path: root/src/api/peers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/peers.rs')
-rw-r--r--src/api/peers.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs
index 9ed11c5..5b7d576 100644
--- a/src/api/peers.rs
+++ b/src/api/peers.rs
@@ -16,7 +16,7 @@ use utoipa::ToSchema;
use super::store_status;
use crate::document::replica::Epoch;
use crate::document::store;
-use crate::state::{AppState, HelloState, Liveness, PeerState, unix_millis};
+use crate::state::{AppState, HelloState, Incidents, Liveness, PeerState, unix_millis};
use crate::swarm::peer::forgotten_path;
use crate::transport::traffic::PeerTraffic;
@@ -69,6 +69,7 @@ pub(crate) struct PeerStatus {
/// Messages and payload bytes exchanged with it, by kind, since we started (or
/// since it was last listed).
traffic: PeerTraffic,
+ incidents: Incidents,
}
#[derive(Debug, Serialize, ToSchema)]
@@ -147,6 +148,7 @@ pub(crate) async fn list_peers(
neighbour,
rtt_ms,
traffic,
+ incidents: ps.incidents,
});
}