tangled
alpha
login
or
join now
ptr.pet
/
hydrant
28
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
28
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
let db = &state.db;
13
14
let mut counts: HashMap<&'static str, u64> = futures::future::join_all(
15
-
["repos", "records", "blocks", "pending", "resync"]
16
-
.into_iter()
17
-
.map(|name| async move { (name, db.get_count(name).await) }),
0
0
0
0
0
0
0
0
0
18
)
19
.await
20
.into_iter()
···
12
let db = &state.db;
13
14
let mut counts: HashMap<&'static str, u64> = futures::future::join_all(
15
+
[
16
+
"repos",
17
+
"records",
18
+
"blocks",
19
+
"pending",
20
+
"resync",
21
+
"error_ratelimited",
22
+
"error_transport",
23
+
"error_generic",
24
+
]
25
+
.into_iter()
26
+
.map(|name| async move { (name, db.get_count(name).await) }),
27
)
28
.await
29
.into_iter()