Skip to content

Commit

Permalink
put the logging statement back where it should be
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Nov 26, 2024
1 parent ba12111 commit 9d6ae1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rs/sns_aggregator/src/upstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ async fn get_sns_data(index: u64, sns_canister_ids: DeployedSns) -> anyhow::Resu
let governance_canister_id = convert_canister_id!(&sns_canister_ids.governance_canister_id);
let ledger_canister_id = convert_canister_id!(&sns_canister_ids.ledger_canister_id);

crate::state::log(format!("Getting SNS index {index}... list_sns_canisters"));

// Default to existing data when some new data for an SNS can't be loaded.
let existing_data = State::get_cached_sns(root_canister_id).unwrap_or_default();

crate::state::log(format!("Getting SNS index {index}... list_sns_canisters"));
let list_sns_canisters: types::ListSnsCanistersResponse =
ic_cdk::api::call::call(root_canister_id, "list_sns_canisters", (types::EmptyRecord {},))
.await
Expand Down

0 comments on commit 9d6ae1c

Please sign in to comment.