Switch to wasm-timer (#1071)

This commit is contained in:
Pierre Krieger
2019-04-25 15:08:06 +02:00
committed by GitHub
parent 9a525d5dea
commit ce4ca3cc75
20 changed files with 36 additions and 33 deletions

View File

@ -32,8 +32,9 @@ use libp2p_core::protocols_handler::{
};
use libp2p_core::{upgrade, either::EitherOutput, InboundUpgrade, OutboundUpgrade, PeerId, upgrade::Negotiated};
use multihash::Multihash;
use std::{error, fmt, io, time::Duration, time::Instant};
use std::{error, fmt, io, time::Duration};
use tokio_io::{AsyncRead, AsyncWrite};
use wasm_timer::Instant;
/// Protocol handler that handles Kademlia communications with the remote.
///