protocols/rendezvous: Fix wasm32 compatibility (#2401)

Fixes #2399.
This commit is contained in:
Piotr Gołąb 2021-12-23 17:13:36 -05:00 committed by GitHub
parent 5435539d05
commit 23f6b00b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ use futures::future::BoxFuture;
use futures::future::FutureExt;
use futures::stream::FuturesUnordered;
use futures::stream::StreamExt;
use instant::Duration;
use libp2p_core::connection::ConnectionId;
use libp2p_core::identity::error::SigningError;
use libp2p_core::identity::Keypair;
@ -37,7 +38,6 @@ use libp2p_swarm::{
use std::collections::{HashMap, VecDeque};
use std::iter::FromIterator;
use std::task::{Context, Poll};
use std::time::Duration;
pub struct Behaviour {
events: VecDeque<