🐛 bug: patch UDP-over-TCP example
parent
3f4bce85a4
commit
74fb0cbe5a
|
@ -53,7 +53,8 @@ async fn async_main () -> anyhow::Result <()> {
|
|||
tcp_port: PORT_2,
|
||||
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 {
|
||||
udp_eph_port: PORT_0,
|
||||
|
|
Loading…
Reference in New Issue