Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
App: apply the new get_resource API
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Mar 8, 2023
1 parent 7e39e6e commit a023856
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/src/rpc/getresource/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ pub mod grpc {
let target_resource = attestation_agent
.download_confidential_resource(
&request.kbc_name,
&request.kbs_uri,
&request.resource_description,
&request.resource_uri,
)
.await
.map_err(|e| {
Expand Down Expand Up @@ -104,8 +103,7 @@ pub mod ttrpc {

let target_resource = block_on(attestation_agent.download_confidential_resource(
&req.KbcName,
&req.KbsUri,
&req.ResourceDescription,
&req.ResourceUri,
))
.map_err(|e| {
error!("Call AA-KBC to get resource failed: {}", e);
Expand Down

0 comments on commit a023856

Please sign in to comment.