summaryrefslogtreecommitdiffstats
path: root/src/http/routes/pages.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/routes/pages.rs')
-rw-r--r--src/http/routes/pages.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/http/routes/pages.rs b/src/http/routes/pages.rs
index dea7de0..f1f3ef8 100644
--- a/src/http/routes/pages.rs
+++ b/src/http/routes/pages.rs
@@ -1,5 +1,3 @@
-//! The read side of the UI: pages that only ever go through `db.read`.
-
use crate::db::{self, builds, Db};
use crate::review::{candidates, diff, risk};
use crate::ops;
@@ -554,10 +552,9 @@ pub(crate) fn audit(state: &State, req: &Req) -> Res {
/// `GET /metrics` in Prometheus text exposition format (§12, §15).
///
-/// Everything here is computed from live state on every scrape. There are no
-/// counters incremented at event sites, because a counter that has to be
-/// maintained by every code path is a counter that quietly drifts the first time
-/// a path is added; a query cannot drift.
+/// Everything here is computed from live state on every scrape. There are no counters
+/// incremented at event sites: a counter every code path has to maintain quietly
+/// drifts the first time a path is added; a query cannot drift.
pub fn metrics(state: &State) -> Res {
match ops::metrics(&state.cfg, &state.db) {
Ok(m) => {