tangled
alpha
login
or
join now
ptr.pet
/
hydrant
26
fork
atom
at protocol indexer with flexible filtering, xrpc queries, and a cursor-backed event stream, built on fjall
at-protocol
atproto
indexer
rust
fjall
26
fork
atom
overview
issues
6
pulls
pipelines
[api] expose backfill error stats
ptr.pet
3 weeks ago
03425429
33aa27be
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
+12
-3
1 changed file
expand all
collapse all
unified
split
src
api
stats.rs
+12
-3
src/api/stats.rs
···
12
12
let db = &state.db;
13
13
14
14
let mut counts: HashMap<&'static str, u64> = futures::future::join_all(
15
15
-
["repos", "records", "blocks", "pending", "resync"]
16
16
-
.into_iter()
17
17
-
.map(|name| async move { (name, db.get_count(name).await) }),
15
15
+
[
16
16
+
"repos",
17
17
+
"records",
18
18
+
"blocks",
19
19
+
"pending",
20
20
+
"resync",
21
21
+
"error_ratelimited",
22
22
+
"error_transport",
23
23
+
"error_generic",
24
24
+
]
25
25
+
.into_iter()
26
26
+
.map(|name| async move { (name, db.get_count(name).await) }),
18
27
)
19
28
.await
20
29
.into_iter()