Skip to content

Commit 0b911d4

Browse files
committed
Split argument out into a temporary variable
1 parent 8e1798a commit 0b911d4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

compiler/base/orchestrator/src/worker.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -463,18 +463,18 @@ impl ProcessState {
463463
self.processes.spawn({
464464
let stdin_shutdown_tx = self.stdin_shutdown_tx.clone();
465465
async move {
466+
let message = process_end(
467+
token,
468+
child,
469+
task_set,
470+
statistics_task,
471+
stdin_shutdown_tx,
472+
job_id,
473+
)
474+
.await;
475+
466476
worker_msg_tx
467-
.send(
468-
process_end(
469-
token,
470-
child,
471-
task_set,
472-
statistics_task,
473-
stdin_shutdown_tx,
474-
job_id,
475-
)
476-
.await,
477-
)
477+
.send(message)
478478
.await
479479
.context(UnableToSendExecuteCommandResponseSnafu)
480480
}

0 commit comments

Comments
 (0)