mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-20 18:56:21 +00:00
Remove unused AuthoritySet bits. Fix soak test warnings (#489)
This commit is contained in:
1 parent
65ad10b715
commit
ad21d0cff0
3 files changed
+2
-9
No files matched your search
@@ -90,8 +90,6 @@ pub struct Finalized {
|
|||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
pub struct AfgAuthoritySet {
|
pub struct AfgAuthoritySet {
|
||||||
pub authority_id: Box<str>,
|
pub authority_id: Box<str>,
|
||||||
pub authorities: Box<str>,
|
|
||||||
pub authority_set_id: Box<str>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
@@ -207,8 +205,6 @@ mod tests {
|
|||||||
bincode_can_serialize_and_deserialize(NodeMessage::V1 {
|
bincode_can_serialize_and_deserialize(NodeMessage::V1 {
|
||||||
payload: Payload::AfgAuthoritySet(AfgAuthoritySet {
|
payload: Payload::AfgAuthoritySet(AfgAuthoritySet {
|
||||||
authority_id: "foo".into(),
|
authority_id: "foo".into(),
|
||||||
authorities: "foo".into(),
|
|
||||||
authority_set_id: "foo".into(),
|
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ async fn run_soak_test(opts: SoakTestOpts) {
|
|||||||
},
|
},
|
||||||
CoreOpts {
|
CoreOpts {
|
||||||
worker_threads: opts.core_worker_threads,
|
worker_threads: opts.core_worker_threads,
|
||||||
|
num_aggregators: opts.core_num_aggregators,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
ShardOpts {
|
ShardOpts {
|
||||||
@@ -265,7 +266,7 @@ fn chain_names(total: usize) -> impl Iterator<Item = String> {
|
|||||||
/// General arguments that are used to start a soak test. Run `soak_test` as
|
/// General arguments that are used to start a soak test. Run `soak_test` as
|
||||||
/// instructed by its documentation for full control over what is ran, or run
|
/// instructed by its documentation for full control over what is ran, or run
|
||||||
/// preconfigured variants.
|
/// preconfigured variants.
|
||||||
#[derive(StructOpt, Debug)]
|
#[derive(StructOpt)]
|
||||||
struct SoakTestOpts {
|
struct SoakTestOpts {
|
||||||
/// The number of shards to run this test with
|
/// The number of shards to run this test with
|
||||||
#[structopt(long)]
|
#[structopt(long)]
|
||||||
|
|||||||
@@ -156,16 +156,12 @@ impl From<Finalized> for internal::Finalized {
|
|||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
pub struct AfgAuthoritySet {
|
pub struct AfgAuthoritySet {
|
||||||
pub authority_id: Box<str>,
|
pub authority_id: Box<str>,
|
||||||
pub authorities: Box<str>,
|
|
||||||
pub authority_set_id: Box<str>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<AfgAuthoritySet> for internal::AfgAuthoritySet {
|
impl From<AfgAuthoritySet> for internal::AfgAuthoritySet {
|
||||||
fn from(msg: AfgAuthoritySet) -> Self {
|
fn from(msg: AfgAuthoritySet) -> Self {
|
||||||
internal::AfgAuthoritySet {
|
internal::AfgAuthoritySet {
|
||||||
authority_id: msg.authority_id,
|
authority_id: msg.authority_id,
|
||||||
authorities: msg.authorities,
|
|
||||||
authority_set_id: msg.authority_set_id,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user