Skip to content

Commit 471cff1

Browse files
committed
fix: update deployment locator
1 parent c58af52 commit 471cff1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

core/graphman/src/commands/deployment/reassign.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ pub fn load_deployment(
3535
) -> Result<ActiveDeployment, ReassignDeploymentError> {
3636
let mut primary_conn = primary_pool.get().map_err(GraphmanError::from)?;
3737

38-
let locator = crate::deployment::load_deployment(
38+
let locator = crate::deployment::load_deployment_locator(
3939
&mut primary_conn,
4040
deployment,
4141
&DeploymentVersionSelector::All,
42-
)?
43-
.locator();
42+
)?;
4443

4544
let mut catalog_conn = catalog::Connection::new(primary_conn);
4645

core/graphman/src/commands/deployment/unassign.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ pub fn load_assigned_deployment(
3131
) -> Result<AssignedDeployment, UnassignDeploymentError> {
3232
let mut primary_conn = primary_pool.get().map_err(GraphmanError::from)?;
3333

34-
let locator = crate::deployment::load_deployment(
34+
let locator = crate::deployment::load_deployment_locator(
3535
&mut primary_conn,
3636
deployment,
3737
&DeploymentVersionSelector::All,
38-
)?
39-
.locator();
38+
)?;
4039

4140
let mut catalog_conn = catalog::Connection::new(primary_conn);
4241

0 commit comments

Comments
 (0)