fix: change some messages to single line style

This commit is contained in:
Yujia Qiao 2022-02-01 21:49:17 +08:00
parent ef154cb56b
commit dde08bdd8c
No known key found for this signature in database
GPG Key ID: DC129173B148701B
1 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@ fn tcp_listen_and_send(
let l = backoff::future::retry_notify(listen_backoff(), || async { let l = backoff::future::retry_notify(listen_backoff(), || async {
Ok(TcpListener::bind(&addr).await?) Ok(TcpListener::bind(&addr).await?)
}, |e, duration| { }, |e, duration| {
error!("{:?}. Retry in {:?}", e, duration); error!("{:#}. Retry in {:?}", e, duration);
}) })
.await .await
.with_context(|| "Failed to listen for the service"); .with_context(|| "Failed to listen for the service");
@ -632,7 +632,7 @@ async fn run_udp_connection_pool<T: Transport>(
.with_context(|| "Failed to listen for the service")?) .with_context(|| "Failed to listen for the service")?)
}, },
|e, duration| { |e, duration| {
warn!("{:?}. Retry in {:?}", e, duration); warn!("{:#}. Retry in {:?}", e, duration);
}, },
) )
.await .await