Skip to content

Commit

Permalink
Config: fixup check and remove await
Browse files Browse the repository at this point in the history
Removes one await that we don't need and simplifies one
conditional.

Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
  • Loading branch information
fitzthum committed Mar 19, 2024
1 parent d728486 commit adca2f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion confidential-data-hub/hub/src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Hub {
#[cfg(feature = "sev")]
{
use log::{info, warn};
match attestation_agent::config::aa_kbc_params::get_params().await {
match attestation_agent::config::aa_kbc_params::get_params() {
Ok(aa_kbc_params) => {
if aa_kbc_params.kbc() == "online_sev_kbc" {
info!("online_sev_kbc used. Start to initialize sev.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl CdhConfig {

impl CdhConfig {
pub fn set_configuration_envs(&self) {
if let Err(_) = attestation_agent::config::aa_kbc_params::get_value() {
if attestation_agent::config::aa_kbc_params::get_value().is_err() {
debug!("No aa_kbc_params provided in kernel cmdline, env and peerpod config.");
// KBS configurations
env::set_var(
Expand Down

0 comments on commit adca2f9

Please sign in to comment.