From 68a1d43cbf4c3304d6d6c6cc0589ea95f4fa8e17 Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Fri, 13 Dec 2024 17:37:33 +0100 Subject: [PATCH] comments --- sdk/rust/nym-sdk/examples/tcp_proxy_single_connection.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdk/rust/nym-sdk/examples/tcp_proxy_single_connection.rs b/sdk/rust/nym-sdk/examples/tcp_proxy_single_connection.rs index 7680525321..df41d503e7 100644 --- a/sdk/rust/nym-sdk/examples/tcp_proxy_single_connection.rs +++ b/sdk/rust/nym-sdk/examples/tcp_proxy_single_connection.rs @@ -117,10 +117,9 @@ async fn main() -> anyhow::Result<()> { Ok::<(), anyhow::Error>(()) }); - // Just wait for Nym clients to connect, TCP clients to bind, etc. - // TODO change this to wait on the actual client to be ready (pool -> client ready state kickback) + // Just wait for Nym clients to connect, TCP clients to bind, etc. If there isn't a client in the pool (or you started it with 0) already then the TcpProxyClient just spins up an ephemeral client itself. println!("waiting for everything to be set up.."); - tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(10)).await; println!("done. sending bytes"); // Now the client and server proxies are running we can create and pipe traffic to/from