From f97197e979fb0fa0a4cf61f6d26ffc27d6b5698a Mon Sep 17 00:00:00 2001 From: Rain Date: Tue, 1 Sep 2026 14:47:17 -0700 Subject: [PATCH] fix build Created using spr 1.3.6-beta.1 --- .../background/tasks/blueprint_rendezvous.rs | 49 ++++++++++--------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/nexus/src/app/background/tasks/blueprint_rendezvous.rs b/nexus/src/app/background/tasks/blueprint_rendezvous.rs index 017f52429fd..4c10da5b549 100644 --- a/nexus/src/app/background/tasks/blueprint_rendezvous.rs +++ b/nexus/src/app/background/tasks/blueprint_rendezvous.rs @@ -61,29 +61,32 @@ impl BlueprintRendezvous { // Reconcile sled availability -- this can be done without an inventory // collection available. - match reconcile_sled_blueprint_availability( - opctx, - &self.datastore, - &blueprint, - ) - .await - { - Ok(stats) => { - SledBlueprintAvailabilityRendezvousOutcome::Reconciled(stats) - } - Err(err) => { - error!( - &opctx.log, - "Blueprint rendezvous: sled availability reconciliation \ - failed"; - "blueprint_id" => %blueprint.id, - "error" => format!("{err:#}"), - ); - SledBlueprintAvailabilityRendezvousOutcome::Error(format!( - "{err:#}" - )) - } - }; + let sled_blueprint_availability = + match reconcile_sled_blueprint_availability( + opctx, + &self.datastore, + &blueprint, + ) + .await + { + Ok(stats) => { + SledBlueprintAvailabilityRendezvousOutcome::Reconciled( + stats, + ) + } + Err(err) => { + error!( + &opctx.log, + "Blueprint rendezvous: sled availability reconciliation \ + failed"; + "blueprint_id" => %blueprint.id, + "error" => format!("{err:#}"), + ); + SledBlueprintAvailabilityRendezvousOutcome::Error(format!( + "{err:#}" + )) + } + }; // Get the inventory most recently seen by the inventory loader // background task. We clone the Arc to avoid keeping the channel locked