cargo fmt

This commit is contained in:
Sébastien Bourdeauducq 2024-10-18 17:43:39 +08:00
parent d3545a774a
commit 6fa6e7c1e5
2 changed files with 11 additions and 2 deletions

View File

@ -405,7 +405,7 @@ async fn handle_run_kernel(
id, id,
destination: _, destination: _,
run, run,
timestamp timestamp,
} => { } => {
let succeeded = match subkernel::load(aux_mutex, routing_table, timer, id, run, timestamp).await { let succeeded = match subkernel::load(aux_mutex, routing_table, timer, id, run, timestamp).await {
Ok(()) => true, Ok(()) => true,

View File

@ -106,7 +106,16 @@ pub async fn load(
if subkernel.state != SubkernelState::Uploaded { if subkernel.state != SubkernelState::Uploaded {
return Err(Error::IncorrectState); return Err(Error::IncorrectState);
} }
drtio::subkernel_load(aux_mutex, routing_table, timer, id, subkernel.destination, run, timestamp).await?; drtio::subkernel_load(
aux_mutex,
routing_table,
timer,
id,
subkernel.destination,
run,
timestamp,
)
.await?;
if run { if run {
subkernel.state = SubkernelState::Running; subkernel.state = SubkernelState::Running;
} }