clippy errors
This commit is contained in:
@ -77,7 +77,7 @@ impl BankingStage {
|
|||||||
fn forward_unprocessed_packets(
|
fn forward_unprocessed_packets(
|
||||||
socket: &std::net::UdpSocket,
|
socket: &std::net::UdpSocket,
|
||||||
tpu: &std::net::SocketAddr,
|
tpu: &std::net::SocketAddr,
|
||||||
unprocessed_packets: &UnprocessedPackets,
|
unprocessed_packets: &[(SharedPackets, usize)],
|
||||||
) -> std::io::Result<()> {
|
) -> std::io::Result<()> {
|
||||||
for (packets, start_index) in unprocessed_packets {
|
for (packets, start_index) in unprocessed_packets {
|
||||||
let packets = packets.read().unwrap();
|
let packets = packets.read().unwrap();
|
||||||
@ -92,7 +92,7 @@ impl BankingStage {
|
|||||||
socket: &std::net::UdpSocket,
|
socket: &std::net::UdpSocket,
|
||||||
poh_recorder: &Arc<Mutex<PohRecorder>>,
|
poh_recorder: &Arc<Mutex<PohRecorder>>,
|
||||||
cluster_info: &Arc<RwLock<ClusterInfo>>,
|
cluster_info: &Arc<RwLock<ClusterInfo>>,
|
||||||
buffered_packets: &UnprocessedPackets,
|
buffered_packets: &[(SharedPackets, usize)],
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let (leader, my_id) = {
|
let (leader, my_id) = {
|
||||||
let rcluster_info = cluster_info.read().unwrap();
|
let rcluster_info = cluster_info.read().unwrap();
|
||||||
|
Reference in New Issue
Block a user