Skip to content

Commit

Permalink
init threads only for sidechain (#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
kziemianek committed Jan 30, 2024
1 parent 8ddda3c commit 1a863e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions tee-worker/enclave-runtime/src/initialization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,6 @@ pub(crate) fn init_enclave(
let data_provider_config = DataProviderConfig::new();
GLOBAL_DATA_PROVIDER_CONFIG.initialize(data_provider_config.into());

std::thread::spawn(move || {
#[allow(clippy::unwrap_used)]
run_stf_task_handler().unwrap();
});

Ok(())
}

Expand Down Expand Up @@ -368,6 +363,13 @@ pub(crate) fn init_enclave_sidechain_components(
}

std::thread::spawn(move || {
println!("running stf task handler");
#[allow(clippy::unwrap_used)]
run_stf_task_handler().unwrap();
});

std::thread::spawn(move || {
println!("running vc issuance");
#[allow(clippy::unwrap_used)]
run_vc_issuance().unwrap();
});
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/litentry/core/data-providers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Default for DataProviderConfig {

impl DataProviderConfig {
pub fn new() -> Self {
std::println!("Initializing data providers config");
log::debug!("Initializing data providers config");

// default prod config
let mut config = DataProviderConfig {
Expand Down

0 comments on commit 1a863e5

Please sign in to comment.