Skip to content

Commit

Permalink
Fix nits (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-evans98 committed Sep 14, 2023
1 parent 05b5965 commit 1e37144
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions adapters/risc0/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub struct Risc0Host<'a> {
}

#[cfg(not(feature = "bench"))]
#[inline(always)]
fn add_benchmarking_callbacks(env: ExecutorEnvBuilder<'_>) -> ExecutorEnvBuilder<'_> {
env
}
Expand Down
8 changes: 3 additions & 5 deletions examples/demo-rollup/tests/bank/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ async fn bank_tx_tests() -> Result<(), anyhow::Error> {
// Wait for rollup task to start:
let port = port_rx.await.unwrap();

// If the rollup throws an error, stop trying to send the transaction and return it
// If the rollup throws an error, return it and stop trying to send the transaction
tokio::select! {
err = rollup_task => {
err?;
},
res = send_test_create_token_tx(port) =>{res?},
err = rollup_task => err?,
res = send_test_create_token_tx(port) => res?,
};
Ok(())
}

0 comments on commit 1e37144

Please sign in to comment.