🐛 bug: patch UDP-over-TCP example

main
(on company time) 2022-12-19 16:36:38 -06:00
parent 3f4bce85a4
commit 74fb0cbe5a
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ async fn async_main () -> anyhow::Result <()> {
tcp_port: PORT_2, tcp_port: PORT_2,
udp_port: PORT_3, udp_port: PORT_3,
}; };
let server_task = spawn (server::main (server_cfg)); let server_app = server::Listener::new (server_cfg).await?;
let server_task = spawn (server_app.run ());
let client_cfg = client::Config { let client_cfg = client::Config {
udp_eph_port: PORT_0, udp_eph_port: PORT_0,