at protocol indexer with flexible filtering, xrpc queries, and a cursor-backed event stream, built on fjall
at-protocol atproto indexer rust fjall

[api] expose backfill error stats

ptr.pet 03425429 33aa27be

verified
+12 -3
+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 - ["repos", "records", "blocks", "pending", "resync"] 16 - .into_iter() 17 - .map(|name| async move { (name, db.get_count(name).await) }), 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) }), 18 27 ) 19 28 .await 20 29 .into_iter()