mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-21 05:41:33 +00:00
Several changes.
- Pin `futures_codec` to version 0.3.3 as later versions require at least bytes-0.5 which he have not upgraded to yet. - Replace `futures::executor::block_on` with `async_std::task::block_on` where `async-std` is already a dependency to work around an issue with `park`/`unpark` behaviour. - Use the published version of `quicksink`.
This commit is contained in:
@ -282,7 +282,7 @@ mod tests {
|
||||
fn tick(h: &mut PingHandler<TcpStream>)
|
||||
-> ProtocolsHandlerEvent<protocol::Ping, (), PingResult, PingFailure>
|
||||
{
|
||||
futures::executor::block_on(future::poll_fn(|cx| h.poll(cx) ))
|
||||
async_std::task::block_on(future::poll_fn(|cx| h.poll(cx) ))
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user