Skip to content

Commit

Permalink
devired_key: cleaning pass confidential-containers#3
Browse files Browse the repository at this point in the history
  • Loading branch information
eldios committed Jan 27, 2025
1 parent 6c20af9 commit bc7428a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions api-server-rest/src/aa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
// SPDX-License-Identifier: Apache-2.0
//

use crate::router::ApiHandler;
use crate::ttrpc_proto::attestation_agent::{
GetDerivedKeyRequest, GetEvidenceRequest, GetTokenRequest,
};
use crate::ttrpc_proto::attestation_agent_ttrpc::AttestationAgentServiceClient;
use anyhow::*;
use async_trait::async_trait;
use hyper::{Body, Method, Request, Response};
use std::collections::HashMap;
use std::net::SocketAddr;
use hyper::Method;

use crate::TTRPC_TIMEOUT;

Expand Down Expand Up @@ -77,11 +74,10 @@ impl ApiHandler for AAClient {
None => return self.bad_request(),
},
AA_DERIVED_KEY_URL => {
Some(key) => match self.get_derived_key().await {
return self.get_derived_key().await {
std::result::Result::Ok(results) => return self.octet_stream_response(results),
Err(e) => return self.internal_error(e.to_string()),
},
None => return self.bad_request(),
};
},

_ => {
Expand Down

0 comments on commit bc7428a

Please sign in to comment.