From 7408d41d4778c1abc8bd18e589e5e0cf0a487c23 Mon Sep 17 00:00:00 2001 From: _ <> Date: Fri, 1 Oct 2021 10:41:44 -0500 Subject: [PATCH] Revert ":construction: wip" This reverts commit 05ba4822f831cba1e3e15798722da766a8f0f46a. --- prototypes/quic_demo/src/bin/quic_demo_relay_server.rs | 6 +++--- prototypes/quic_demo/src/prelude.rs | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs b/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs index 948eda9..064c928 100644 --- a/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs +++ b/prototypes/quic_demo/src/bin/quic_demo_relay_server.rs @@ -199,8 +199,8 @@ struct RequestP2ToP4 { client_id: String, } -struct PtthNewConnection { - client_send: ClientSend, +struct PtthNewConnection { + client_send: quinn::SendStream, client_recv: quinn::RecvStream, server_send: quinn::SendStream, server_recv: quinn::RecvStream, @@ -211,7 +211,7 @@ struct PtthConnection { downlink_task: JoinHandle >, } -impl PtthNewConnection { +impl PtthNewConnection { fn build (self) -> PtthConnection { let Self { mut client_send, diff --git a/prototypes/quic_demo/src/prelude.rs b/prototypes/quic_demo/src/prelude.rs index b94e1d6..03fc349 100644 --- a/prototypes/quic_demo/src/prelude.rs +++ b/prototypes/quic_demo/src/prelude.rs @@ -18,9 +18,7 @@ pub use anyhow::{ pub use futures_util::StreamExt; pub use tokio::{ io::{ - AsyncRead, AsyncReadExt, - AsyncWrite, AsyncWriteExt, }, net::TcpListener,