aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/stats.rs')
-rw-r--r--src/api/stats.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/stats.rs b/src/api/stats.rs
index 889b675..114f644 100644
--- a/src/api/stats.rs
+++ b/src/api/stats.rs
@@ -249,7 +249,8 @@ pub(crate) async fn get_stats(State(state): State<AppState>, headers: HeaderMap)
}
}
-async fn collect(state: &AppState) -> StatsResponse {
+/// What `GET /admin/stats` answers as JSON, for others to show too (the dashboard).
+pub(crate) async fn collect(state: &AppState) -> StatsResponse {
let node = state.stats.snapshot();
let (heads, tier, remakes) = {