File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments