Skip to content

Commit

Permalink
fix: requires "StatusTracker" to implement "Send" (#589)
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan Ross <[email protected]>
  • Loading branch information
dyro and Dylan Ross authored Sep 19, 2024
1 parent 2f9031e commit 28fd520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/src/status_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl LogItem {
}
}

pub trait StatusTracker {
pub trait StatusTracker: Send {
// should we stop on the first error
fn stop_on_error(&self) -> bool;

Expand Down
5 changes: 3 additions & 2 deletions sdk/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,8 @@ impl Store {
}

// wake the ingredients and validate
#[async_recursion(?Send)]
#[cfg_attr(target_arch = "wasm32", async_recursion(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_recursion)]
async fn ingredient_checks_async(
store: &Store,
claim: &Claim,
Expand Down Expand Up @@ -1428,7 +1429,7 @@ impl Store {
}

let check_ingredient_trust: bool =
crate::settings::get_settings_value("verify.check_ingredient_trust")?;
get_settings_value("verify.check_ingredient_trust")?;

// verify the ingredient claim
Claim::verify_claim_async(
Expand Down

0 comments on commit 28fd520

Please sign in to comment.