chore(deps): replace instant with web-time (#1830)

* chore(deps): replace `instant` with `web-time`

Close https://github.com/paritytech/subxt/issues/1597

* fix build

* fix build v2

* cargo fmt
This commit is contained in:
Niklas Adolfsson
2024-10-22 15:54:54 +02:00
committed by GitHub
parent c07c760d85
commit 418bd88e62
6 changed files with 21 additions and 24 deletions
+1 -1
View File
@@ -560,7 +560,7 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for ChainHeadBackend<T> {
let mut finalized_hash: Option<T::Hash> = None;
// Record the start time so that we can time out if things appear to take too long.
let start_instant = instant::Instant::now();
let start_instant = web_time::Instant::now();
// A quick helper to return a generic error.
let err_other = |s: &str| Some(Err(Error::Other(s.into())));