Cleanup FindPacketSenderStakeReceiver function args (#29834)
find_packet_sender_stake_stage::FindPacketSenderStakeReceiver is quite verbose to include in function arguments, and type name is descriptive enough that it doesn't need to be qualified with the crate name in every instance.
This commit is contained in:
parent
3e8874e3a2
commit
f1b2e49b03
|
@ -6,7 +6,7 @@
|
|||
//! if perf-libs are available
|
||||
|
||||
use {
|
||||
crate::{find_packet_sender_stake_stage, sigverify},
|
||||
crate::{find_packet_sender_stake_stage::FindPacketSenderStakeReceiver, sigverify},
|
||||
core::time::Duration,
|
||||
crossbeam_channel::{RecvTimeoutError, SendError},
|
||||
itertools::Itertools,
|
||||
|
@ -235,7 +235,7 @@ impl SigVerifier for DisabledSigVerifier {
|
|||
impl SigVerifyStage {
|
||||
#[allow(clippy::new_ret_no_self)]
|
||||
pub fn new<T: SigVerifier + 'static + Send + Clone>(
|
||||
packet_receiver: find_packet_sender_stake_stage::FindPacketSenderStakeReceiver,
|
||||
packet_receiver: FindPacketSenderStakeReceiver,
|
||||
verifier: T,
|
||||
name: &'static str,
|
||||
) -> Self {
|
||||
|
@ -291,7 +291,7 @@ impl SigVerifyStage {
|
|||
|
||||
fn verifier<T: SigVerifier>(
|
||||
deduper: &Deduper,
|
||||
recvr: &find_packet_sender_stake_stage::FindPacketSenderStakeReceiver,
|
||||
recvr: &FindPacketSenderStakeReceiver,
|
||||
verifier: &mut T,
|
||||
stats: &mut SigVerifierStats,
|
||||
) -> Result<(), T::SendType> {
|
||||
|
@ -403,7 +403,7 @@ impl SigVerifyStage {
|
|||
}
|
||||
|
||||
fn verifier_service<T: SigVerifier + 'static + Send + Clone>(
|
||||
packet_receiver: find_packet_sender_stake_stage::FindPacketSenderStakeReceiver,
|
||||
packet_receiver: FindPacketSenderStakeReceiver,
|
||||
mut verifier: T,
|
||||
name: &'static str,
|
||||
) -> JoinHandle<()> {
|
||||
|
@ -444,7 +444,7 @@ impl SigVerifyStage {
|
|||
}
|
||||
|
||||
fn verifier_services<T: SigVerifier + 'static + Send + Clone>(
|
||||
packet_receiver: find_packet_sender_stake_stage::FindPacketSenderStakeReceiver,
|
||||
packet_receiver: FindPacketSenderStakeReceiver,
|
||||
verifier: T,
|
||||
name: &'static str,
|
||||
) -> JoinHandle<()> {
|
||||
|
|
Loading…
Reference in New Issue