simplify futures

This commit is contained in:
John Smith
2022-06-29 10:34:23 -04:00
parent 018d7da429
commit e49f7a89c0
5 changed files with 8 additions and 7 deletions

View File

@@ -198,8 +198,10 @@ impl ClientApiConnection {
// Create the VAT network
cfg_if! {
if #[cfg(feature="rt-async-std")] {
use futures::AsyncReadExt;
let (reader, writer) = stream.split();
} else if #[cfg(feature="rt-tokio")] {
pub use tokio_util::compat::*;
let (reader, writer) = stream.into_split();
let reader = reader.compat();
let writer = writer.compat_write();