Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rumenov committed Nov 15, 2024
1 parent aac0326 commit 8dc7c84
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,12 @@ impl BasicSignatureCspVault for RemoteCspVault {
message: Vec<u8>,
key_id: KeyId,
) -> Result<CspSignature, CspBasicSignatureError> {
let c = self.tarpc_csp_client.clone();
let t = self.rpc_timeout.clone();
self.tokio_block_on(async move {
c.sign(
context_with_timeout(t),
algorithm_id,
ByteBuf::from(message),
key_id,
)
.await
})
self.tokio_block_on(self.tarpc_csp_client.sign(
context_with_timeout(self.rpc_timeout),
algorithm_id,
ByteBuf::from(message),
key_id,
))
.unwrap_or_else(|rpc_error: tarpc::client::RpcError| {
Err(CspBasicSignatureError::TransientInternalError {
internal_error: rpc_error.to_string(),
Expand Down

0 comments on commit 8dc7c84

Please sign in to comment.