Skip to content

Commit

Permalink
use std::time::Duration instead of tokio::time::Duration in de_secs_d…
Browse files Browse the repository at this point in the history
…uration
  • Loading branch information
Kirill-K-1 committed Feb 16, 2024
1 parent f7116dd commit c29e990
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shared/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ use k256::{ecdsa::RecoveryId, elliptic_curve::scalar::ScalarPrimitive, Secp256k1
use log::error;
use serde::de::{self, Deserialize, DeserializeOwned};
use sha3::{Digest, Keccak256};
use std::{panic, path::PathBuf, thread};
use tokio::time::Duration;
use std::{panic, path::PathBuf, thread, time::Duration};

use crate::common::{SBTRequest, WalletSignedMessage};

Expand Down Expand Up @@ -60,7 +59,7 @@ pub fn set_heavy_panic() {
}));
}

/// Deserialize seconds into [`tokio::time::Duration`]
/// Deserialize seconds into [`std::time::Duration`]
pub fn de_secs_duration<'de, D>(deserializer: D) -> Result<Duration, D::Error>
where
D: de::Deserializer<'de>,
Expand Down

0 comments on commit c29e990

Please sign in to comment.