Skip to content

Commit 30035d4

Browse files
committed
feat: Add performance log to dsigner
1 parent da26459 commit 30035d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dsigner/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,14 @@ async fn sign_handler(
5858
State(state): State<Arc<AppState>>,
5959
Json(payload): Json<SignRequest>,
6060
) -> Response {
61+
let start = std::time::Instant::now();
62+
6163
// Call the async signing function
6264
let sig_res = state.async_signer.async_sign(&payload.m).await;
6365

66+
let duration = start.elapsed();
67+
tracing::debug!("Signing operation took {}ms", duration.as_millis());
68+
6469
if let Ok(sig) = sig_res {
6570
let base64_sig = sig
6671
.ser_base64()

0 commit comments

Comments
 (0)