Skip to content

Commit

Permalink
Fix linter violations (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison authored Dec 4, 2023
1 parent 193b087 commit f41283c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/integ_tests/workflow_tests/cancel_external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async fn cancel_sender(ctx: WfContext) -> WorkflowResult<()> {
Ok(().into())
}

async fn cancel_receiver(mut ctx: WfContext) -> WorkflowResult<()> {
async fn cancel_receiver(ctx: WfContext) -> WorkflowResult<()> {
ctx.cancelled().await;
Ok(().into())
}
Expand Down
2 changes: 1 addition & 1 deletion tests/integ_tests/workflow_tests/cancel_wf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use temporal_sdk::{WfContext, WfExitValue, WorkflowResult};
use temporal_sdk_core_protos::temporal::api::enums::v1::WorkflowExecutionStatus;
use temporal_sdk_core_test_utils::CoreWfStarter;

async fn cancelled_wf(mut ctx: WfContext) -> WorkflowResult<()> {
async fn cancelled_wf(ctx: WfContext) -> WorkflowResult<()> {
let cancelled = tokio::select! {
_ = ctx.timer(Duration::from_secs(500)) => false,
_ = ctx.cancelled() => true
Expand Down
6 changes: 3 additions & 3 deletions tests/integ_tests/workflow_tests/child_workflows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async fn abandoned_child_bug_repro() {

worker.register_wf(
PARENT_WF_TYPE.to_string(),
move |mut ctx: WfContext| async move {
move |ctx: WfContext| async move {
let child = ctx.child_workflow(ChildWorkflowOptions {
workflow_id: "abandoned-child".to_owned(),
workflow_type: CHILD_WF_TYPE.to_owned(),
Expand All @@ -89,7 +89,7 @@ async fn abandoned_child_bug_repro() {
Ok(().into())
},
);
worker.register_wf(CHILD_WF_TYPE.to_string(), |mut ctx: WfContext| async move {
worker.register_wf(CHILD_WF_TYPE.to_string(), |ctx: WfContext| async move {
ctx.cancelled().await;
Ok(WfExitValue::<()>::Cancelled)
});
Expand Down Expand Up @@ -135,7 +135,7 @@ async fn abandoned_child_resolves_post_cancel() {

worker.register_wf(
PARENT_WF_TYPE.to_string(),
move |mut ctx: WfContext| async move {
move |ctx: WfContext| async move {
let child = ctx.child_workflow(ChildWorkflowOptions {
workflow_id: "abandoned-child-resolve-post-cancel".to_owned(),
workflow_type: CHILD_WF_TYPE.to_owned(),
Expand Down

0 comments on commit f41283c

Please sign in to comment.