fix broken log output

This commit is contained in:
GroovieGermanikus 2023-08-09 17:15:46 +02:00
parent 1e055fec2c
commit a27cc06711
1 changed files with 11 additions and 11 deletions

View File

@ -154,17 +154,17 @@ pub async fn tx_forwarder(
auto_connection.target_address
));
if result.is_err() {
warn!(
"got send_txs_to_tpu_static error {:?} - loop over errors",
result
);
} else {
debug!("send_txs_to_tpu_static sent {}", transactions_batch.len());
debug!(
"Outbound connection stats: {}",
&auto_connection.connection_stats().await
);
match result {
Ok(()) => {
debug!("send_txs_to_tpu_static sent {}", transactions_batch.len());
debug!(
"Outbound connection stats: {}",
&auto_connection.connection_stats().await
);
}
Err(err) => {
warn!("got send_txs_to_tpu_static error {} - loop over errors", err);
}
}
} // -- while all packtes from channel