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
[backfill] properly adjust counts if backfill error-red
ptr.pet
1 month ago
5053bab7
75d3bc5c
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
+4
-5
1 changed file
expand all
collapse all
unified
split
src
backfill
mod.rs
+4
-5
src/backfill/mod.rs
···
187
187
};
188
188
189
189
let mut batch = state.db.inner.batch();
190
190
-
191
190
batch.insert(&state.db.resync, &did_key, serialized_resync_state);
192
192
-
191
191
+
batch.remove(&state.db.pending, &did_key);
193
192
if let Some(state_bytes) = serialized_repo_state {
194
193
batch.insert(&state.db.repos, &did_key, state_bytes);
195
194
}
196
196
-
197
197
-
// 5. remove from pending
198
198
-
batch.remove(&state.db.pending, &did_key);
199
195
batch.commit().into_diagnostic()
200
196
}
201
197
})
202
198
.await
203
199
.into_diagnostic()??;
200
200
+
201
201
+
state.db.update_count_async("resync", 1).await;
202
202
+
state.db.update_count_async("pending", -1).await;
204
203
}
205
204
}
206
205