replace instant with web-time (#5800)

* replace instant with web_time

* Merge branch 'unstable' into replace-instant-gossipsub

# Conflicts:
#	Cargo.lock
#	beacon_node/lighthouse_network/Cargo.toml
This commit is contained in:
João Oliveira
2024-05-30 20:18:35 +01:00
committed by GitHub
parent 17dc978760
commit bbe9242811
10 changed files with 20 additions and 15 deletions

View File

@@ -26,7 +26,6 @@ use asynchronous_codec::Framed;
use futures::future::Either;
use futures::prelude::*;
use futures::StreamExt;
use instant::Instant;
use libp2p::core::upgrade::DeniedUpgrade;
use libp2p::swarm::handler::{
ConnectionEvent, ConnectionHandler, ConnectionHandlerEvent, DialUpgradeError,
@@ -37,6 +36,7 @@ use std::{
pin::Pin,
task::{Context, Poll},
};
use web_time::Instant;
/// The event emitted by the Handler. This informs the behaviour of various events created
/// by the handler.