Skip to content

Commit f7c6da0

Browse files
committed
fix(gas): fix from_workflow when creating standalone ctx from op ctx
1 parent 01fe386 commit f7c6da0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

engine/packages/gasoline/src/ctx/standalone.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ impl StandaloneCtx {
8484
}
8585

8686
#[tracing::instrument(skip_all)]
87-
pub fn new_from_operation(ctx: &OperationCtx, req_id: Id) -> WorkflowResult<Self> {
87+
pub fn new_from_operation(op_ctx: &OperationCtx, req_id: Id) -> WorkflowResult<Self> {
8888
let mut ctx = StandaloneCtx::new(
89-
ctx.db().clone(),
90-
ctx.config().clone(),
91-
ctx.pools().clone(),
92-
ctx.cache().clone(),
93-
ctx.name(),
94-
ctx.ray_id(),
89+
op_ctx.db().clone(),
90+
op_ctx.config().clone(),
91+
op_ctx.pools().clone(),
92+
op_ctx.cache().clone(),
93+
op_ctx.name(),
94+
op_ctx.ray_id(),
9595
req_id,
9696
)?;
9797

98-
ctx.from_workflow = ctx.from_workflow;
98+
ctx.from_workflow = true;
9999

100100
Ok(ctx)
101101
}

0 commit comments

Comments
 (0)