Remove redundant inc_new_counter for num received packets (#32664)

The same value is reported as a field in StreamerReceiveStats in
/streamer/src/streamer.rs
This commit is contained in:
steviez 2023-07-31 09:53:17 -06:00 committed by GitHub
parent bb407d2b62
commit 0dd4c208e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -4,7 +4,6 @@ use {
recvmmsg::{recv_mmsg, NUM_RCVMMSGS},
socket::SocketAddrSpace,
},
solana_metrics::inc_new_counter_debug,
std::{
io::Result,
net::UdpSocket,
@ -59,7 +58,6 @@ pub fn recv_from(batch: &mut PacketBatch, socket: &UdpSocket, max_wait: Duration
}
}
batch.truncate(i);
inc_new_counter_debug!("packets-recv_count", i);
Ok(i)
}