Skip to content

Commit

Permalink
reduced amount of sleep in attest
Browse files Browse the repository at this point in the history
  • Loading branch information
Athryx committed Mar 11, 2024
1 parent c2a00b6 commit e0eeb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ fn process_scan(driver: &mut ComponentDriver) -> Result<(), ComponentError> {

fn process_attest(driver: &mut ComponentDriver) -> Result<(), ComponentError> {
// I think this should make getting rng samples a little harder
// this amount of sleeping leaves a 20 milliseconds extra under 300 for the whole attest process
sleep(Duration::from_millis(70));
// this amount of sleeping leaves a 20 milliseconds extra under 3 seconds for the whole attest process
sleep(Duration::from_millis(55));

let nonce = driver.gen_nonce();
driver.send_struct(nonce)?;
Expand Down

0 comments on commit e0eeb7e

Please sign in to comment.