Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cattibrie committed Sep 11, 2019
1 parent d01d81a commit 8f96bd3
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/rust/engine/process_execution/src/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ impl super::CommandRunner for CommandRunner {
vec![command_digest, action_digest, input_files],
workunit_store,
)
}})
}
})
.and_then({
let execute_request = execute_request.clone();
let command_runner = command_runner.clone();
Expand All @@ -180,8 +181,8 @@ impl super::CommandRunner for CommandRunner {
command
);
command_runner
.oneshot_execute(&execute_request)
.join(future::ok(history))
.oneshot_execute(&execute_request)
.join(future::ok(history))
}
})
.and_then(move |(operation, history)| {
Expand Down Expand Up @@ -229,12 +230,13 @@ impl super::CommandRunner for CommandRunner {
.and_then({
let command_runner = command_runner.clone();
move |summary| {
let mut history = history;
history.current_attempt += summary;
command_runner
.oneshot_execute(&execute_request)
.join(future::ok(history))
}})
let mut history = history;
history.current_attempt += summary;
command_runner
.oneshot_execute(&execute_request)
.join(future::ok(history))
}
})
// Reset `iter_num` on `MissingDigests`
.map(|(operation, history)| future::Loop::Continue((history, operation, 0)))
.to_boxed()
Expand Down Expand Up @@ -282,10 +284,7 @@ impl super::CommandRunner for CommandRunner {
.and_then(move |_| {
future::done(
operations_client
.get_operation_opt(
&operation_request,
command_runner.call_option(),
)
.get_operation_opt(&operation_request, command_runner.call_option())
.or_else(move |err| {
rpcerror_recover_cancelled(operation_request.take_name(), err)
})
Expand Down

0 comments on commit 8f96bd3

Please sign in to comment.