Skip to content

Commit

Permalink
derive_key: change key id to be correctly used #6 (typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
eldios committed Jan 27, 2025
1 parent 5e5e602 commit 2df1527
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ impl AttestationAgentService for AA {

let derived_key = self
.inner
.get_derived_key(&key_id, Vec::new())
.get_derived_key(&req.KeyId, Vec::new())
.await
.map_err(|e| {
error!(
"AA (ttrpc): get derived key failed:\n {e:?}\n key_id:\n {:#?}",
&req.key_id
&req.KeyId
);
let mut error_status = ::ttrpc::proto::Status::new();
error_status.set_code(Code::INTERNAL);
error_status.set_message(format!(
"[ERROR:{AGENT_NAME}] AA-KBC get derived key failed. key_id: {:#?}",
&req.key_id
&req.KeyId
));
::ttrpc::Error::RpcStatus(error_status)
})?;
Expand Down

0 comments on commit 2df1527

Please sign in to comment.