mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 14:51:34 +00:00
Switch to wasm-timer (#1071)
This commit is contained in:
@ -23,7 +23,8 @@ use futures::{prelude::*, try_ready};
|
||||
use lazy_static::lazy_static;
|
||||
use parking_lot::Mutex;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use std::{cmp, io, io::Read, io::Write, sync::Arc, time::Duration, time::Instant};
|
||||
use std::{cmp, io, io::Read, io::Write, sync::Arc, time::Duration};
|
||||
use wasm_timer::Instant;
|
||||
|
||||
/// Wraps around a `Transport` and logs the bandwidth that goes through all the opened connections.
|
||||
#[derive(Clone)]
|
||||
|
Reference in New Issue
Block a user