Skip to content

Commit 905cb46

Browse files
committed
make channel types consistent
1 parent dd13972 commit 905cb46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nexus/src/app/background/tasks/blueprint_planner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub struct BlueprintPlanner {
5959
rx_config: Receiver<ReconfiguratorConfigLoaderState>,
6060
rx_inventory: Receiver<Option<Arc<Collection>>>,
6161
rx_blueprint: Receiver<Option<(BlueprintTarget, Arc<Blueprint>)>>,
62-
tx_blueprint: Sender<Option<Arc<(BlueprintTarget, Blueprint)>>>,
62+
tx_blueprint: Sender<Option<(BlueprintTarget, Arc<Blueprint>)>>,
6363
blueprint_limit: u64,
6464
}
6565

@@ -99,7 +99,7 @@ impl BlueprintPlanner {
9999

100100
pub fn watcher(
101101
&self,
102-
) -> watch::Receiver<Option<Arc<(BlueprintTarget, Blueprint)>>> {
102+
) -> watch::Receiver<Option<(BlueprintTarget, Arc<Blueprint>)>> {
103103
self.tx_blueprint.subscribe()
104104
}
105105

@@ -313,7 +313,7 @@ impl BlueprintPlanner {
313313

314314
// We have a new target!
315315

316-
self.tx_blueprint.send_replace(Some(Arc::new((target, blueprint))));
316+
self.tx_blueprint.send_replace(Some((target, Arc::new(blueprint))));
317317
Ok(BlueprintPlannerStatus::Targeted {
318318
parent_blueprint_id,
319319
blueprint_id,

0 commit comments

Comments
 (0)