Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Initialize AccountStore in-memory state when starting the worker #3213

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tee-worker/identity/service/src/main_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@ pub(crate) fn main() {
enclave_metrics_receiver,
)));

// init in-memory store, it should be done after the o-call bridge is initialized
if let Err(e) = enclave.init_in_memory_state() {
error!("Failed to initialize in-memory state: {:?}", e);
}

#[cfg(feature = "dcap")]
let quoting_enclave_target_info = match enclave.qe_get_target_info() {
Ok(target_info) => Some(target_info),
Expand All @@ -190,6 +185,11 @@ pub(crate) fn main() {
let quote_size = None;

if let Some(run_config) = config.run_config() {
// init in-memory store, it should be done after the o-call bridge is initialized
if let Err(e) = enclave.init_in_memory_state() {
error!("Failed to initialize in-memory state: {:?}", e);
}

let shard = extract_shard(run_config.shard(), enclave.as_ref());

info!("Worker Config: {:?}", config);
Expand Down
Loading