Remove unused AuthoritySet bits. Fix soak test warnings (#489)

This commit is contained in:
James Wilson
2022-08-08 11:13:26 +01:00
committed by GitHub
parent 65ad10b715
commit ad21d0cff0
3 changed files with 2 additions and 9 deletions
-4
View File
@@ -90,8 +90,6 @@ pub struct Finalized {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct AfgAuthoritySet {
pub authority_id: Box<str>,
pub authorities: Box<str>,
pub authority_set_id: Box<str>,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
@@ -207,8 +205,6 @@ mod tests {
bincode_can_serialize_and_deserialize(NodeMessage::V1 {
payload: Payload::AfgAuthoritySet(AfgAuthoritySet {
authority_id: "foo".into(),
authorities: "foo".into(),
authority_set_id: "foo".into(),
}),
});
}
+2 -1
View File
@@ -87,6 +87,7 @@ async fn run_soak_test(opts: SoakTestOpts) {
},
CoreOpts {
worker_threads: opts.core_worker_threads,
num_aggregators: opts.core_num_aggregators,
..Default::default()
},
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
/// instructed by its documentation for full control over what is ran, or run
/// preconfigured variants.
#[derive(StructOpt, Debug)]
#[derive(StructOpt)]
struct SoakTestOpts {
/// The number of shards to run this test with
#[structopt(long)]
@@ -156,16 +156,12 @@ impl From<Finalized> for internal::Finalized {
#[derive(Deserialize, Debug)]
pub struct AfgAuthoritySet {
pub authority_id: Box<str>,
pub authorities: Box<str>,
pub authority_set_id: Box<str>,
}
impl From<AfgAuthoritySet> for internal::AfgAuthoritySet {
fn from(msg: AfgAuthoritySet) -> Self {
internal::AfgAuthoritySet {
authority_id: msg.authority_id,
authorities: msg.authorities,
authority_set_id: msg.authority_set_id,
}
}
}