protocols/{relay,dcutr}: Replace std::time::SystemTime with instant::SystemTime (#2991)

This commit is contained in:
Thomas Eizinger
2022-10-13 00:09:47 +11:00
committed by GitHub
parent f711dd5ce0
commit eb10af7a4b
5 changed files with 13 additions and 5 deletions

View File

@ -22,11 +22,11 @@ use crate::message_proto::{hole_punch, HolePunch};
use asynchronous_codec::Framed;
use futures::{future::BoxFuture, prelude::*};
use futures_timer::Delay;
use instant::Instant;
use libp2p_core::{multiaddr::Protocol, upgrade, Multiaddr};
use libp2p_swarm::NegotiatedSubstream;
use std::convert::TryFrom;
use std::iter;
use std::time::Instant;
use thiserror::Error;
pub struct Upgrade {