Skip to content

Commit 50c392e

Browse files
jamiepineclaude
andcommitted
cargo fmt
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bd1c713 commit 50c392e

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

core/src/infra/db/entities/content_identity.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,10 @@ impl Syncable for Model {
271271
// payload.
272272
let fk_mappings = Self::foreign_key_mappings();
273273
if !fk_mappings.is_empty() && !sync_results.is_empty() {
274-
let mut payloads: Vec<serde_json::Value> =
275-
sync_results.iter().map(|(_, json, _)| json.clone()).collect();
274+
let mut payloads: Vec<serde_json::Value> = sync_results
275+
.iter()
276+
.map(|(_, json, _)| json.clone())
277+
.collect();
276278
let mut failed_indices: std::collections::HashSet<usize> =
277279
std::collections::HashSet::new();
278280

core/src/service/sync/backfill.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ impl BackfillManager {
559559
// those across the whole batch first — one DB round trip per FK
560560
// type instead of per (record × FK).
561561
let processed_data = if model_type == "entry" && !fk_mappings.is_empty() {
562-
let table_name =
563-
crate::infra::sync::get_table_name(&model_type).await;
562+
let table_name = crate::infra::sync::get_table_name(&model_type).await;
564563
let (self_ref_mappings, non_self_mappings): (Vec<_>, Vec<_>) = fk_mappings
565564
.iter()
566565
.cloned()
@@ -611,9 +610,7 @@ impl BackfillManager {
611610
.dependency_tracker()
612611
.add_dependency(
613612
missing_uuid,
614-
super::state::BufferedUpdate::StateChange(
615-
state_change,
616-
),
613+
super::state::BufferedUpdate::StateChange(state_change),
617614
)
618615
.await;
619616
}

0 commit comments

Comments
 (0)