Skip to content

Commit 3e834fd

Browse files
committed
remove debug logging
1 parent 1d2604f commit 3e834fd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

irpc-iroh/examples/0rtt.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ async fn ping_one(
133133
let node_id = addr.node_id;
134134
let t0 = Instant::now();
135135
if !no_0rtt {
136-
println!("Connecting to {} with 0-RTT", addr.node_id);
137136
let api = EchoApi::connect_0rtt(endpoint.clone(), addr.clone()).await?;
138137
ping_one_0rtt(api, &endpoint, node_id, wait_for_ticket, i, t0).await?;
139138
} else {
@@ -265,15 +264,15 @@ mod ping {
265264
.context("failed to connect to remote service")?;
266265
match connecting.into_0rtt() {
267266
Ok((conn, zero_rtt_accepted)) => {
268-
println!("0-RTT possible from our side");
267+
info!("0-RTT possible from our side");
269268
let fut: future::Boxed<bool> = Box::pin(zero_rtt_accepted);
270269
Ok(EchoApi {
271270
inner: Client::boxed(IrohConnection(conn)),
272271
zero_rtt_accepted: fut.shared(),
273272
})
274273
}
275274
Err(connecting) => {
276-
println!("0-RTT not possible from our side");
275+
info!("0-RTT not possible from our side");
277276
let fut: future::Boxed<bool> = Box::pin(async { true });
278277
let conn = connecting.await?;
279278
Ok(EchoApi {

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,11 +1336,9 @@ impl<S: Service> Client<S> {
13361336
let buf = rpc::prepare_write::<S>(msg)?;
13371337
let (_tx, rx) = request.write_raw(&buf).await?;
13381338
if zero_rtt_accepted.await {
1339-
println!("0-RTT accepted");
13401339
rx
13411340
} else {
13421341
// 0rtt was not accepted, the data is lost, send it again!
1343-
println!("0-RTT not accepted");
13441342
let Request::Remote(request) = this.request().await? else {
13451343
unreachable!()
13461344
};

0 commit comments

Comments
 (0)