mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 03:17:56 +00:00
naming consistency (#4539)
This commit is contained in:
committed by
GitHub
parent
804e0918f1
commit
a558ee0b57
@@ -104,7 +104,7 @@ const LOG_TARGET: &str = "parachain::statement-distribution";
|
||||
const MAX_LARGE_STATEMENTS_PER_SENDER: usize = 20;
|
||||
|
||||
/// The statement distribution subsystem.
|
||||
pub struct StatementDistribution {
|
||||
pub struct StatementDistributionSubsystem {
|
||||
/// Pointer to a keystore, which is required for determining this node's validator index.
|
||||
keystore: SyncCryptoStorePtr,
|
||||
/// Receiver for incoming large statement requests.
|
||||
@@ -113,7 +113,7 @@ pub struct StatementDistribution {
|
||||
metrics: Metrics,
|
||||
}
|
||||
|
||||
impl<Context> overseer::Subsystem<Context, SubsystemError> for StatementDistribution
|
||||
impl<Context> overseer::Subsystem<Context, SubsystemError> for StatementDistributionSubsystem
|
||||
where
|
||||
Context: SubsystemContext<Message = StatementDistributionMessage>,
|
||||
Context: overseer::SubsystemContext<Message = StatementDistributionMessage>,
|
||||
@@ -131,14 +131,14 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl StatementDistribution {
|
||||
impl StatementDistributionSubsystem {
|
||||
/// Create a new Statement Distribution Subsystem
|
||||
pub fn new(
|
||||
keystore: SyncCryptoStorePtr,
|
||||
req_receiver: IncomingRequestReceiver<request_v1::StatementFetchingRequest>,
|
||||
metrics: Metrics,
|
||||
) -> StatementDistribution {
|
||||
StatementDistribution { keystore, req_receiver: Some(req_receiver), metrics }
|
||||
) -> Self {
|
||||
Self { keystore, req_receiver: Some(req_receiver), metrics }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1535,7 +1535,7 @@ async fn handle_network_update(
|
||||
}
|
||||
}
|
||||
|
||||
impl StatementDistribution {
|
||||
impl StatementDistributionSubsystem {
|
||||
async fn run(
|
||||
mut self,
|
||||
mut ctx: (impl SubsystemContext<Message = StatementDistributionMessage>
|
||||
|
||||
@@ -703,7 +703,7 @@ fn receiving_from_one_sends_to_another_and_to_candidate_backing() {
|
||||
let (statement_req_receiver, _) = IncomingRequest::get_config_receiver();
|
||||
|
||||
let bg = async move {
|
||||
let s = StatementDistribution::new(
|
||||
let s = StatementDistributionSubsystem::new(
|
||||
Arc::new(LocalKeystore::in_memory()),
|
||||
statement_req_receiver,
|
||||
Default::default(),
|
||||
@@ -895,7 +895,7 @@ fn receiving_large_statement_from_one_sends_to_another_and_to_candidate_backing(
|
||||
let (statement_req_receiver, mut req_cfg) = IncomingRequest::get_config_receiver();
|
||||
|
||||
let bg = async move {
|
||||
let s = StatementDistribution::new(
|
||||
let s = StatementDistributionSubsystem::new(
|
||||
make_ferdie_keystore(),
|
||||
statement_req_receiver,
|
||||
Default::default(),
|
||||
@@ -1394,7 +1394,7 @@ fn share_prioritizes_backing_group() {
|
||||
let (statement_req_receiver, mut req_cfg) = IncomingRequest::get_config_receiver();
|
||||
|
||||
let bg = async move {
|
||||
let s = StatementDistribution::new(
|
||||
let s = StatementDistributionSubsystem::new(
|
||||
make_ferdie_keystore(),
|
||||
statement_req_receiver,
|
||||
Default::default(),
|
||||
@@ -1679,7 +1679,7 @@ fn peer_cant_flood_with_large_statements() {
|
||||
|
||||
let (statement_req_receiver, _) = IncomingRequest::get_config_receiver();
|
||||
let bg = async move {
|
||||
let s = StatementDistribution::new(
|
||||
let s = StatementDistributionSubsystem::new(
|
||||
make_ferdie_keystore(),
|
||||
statement_req_receiver,
|
||||
Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user