clippy
This commit is contained in:
@@ -176,11 +176,11 @@ pub(crate) mod tests {
|
||||
PathBuf::default(),
|
||||
PersistentState::default(),
|
||||
Url::parse("localhost:8000").unwrap(),
|
||||
DkgKeyPair::new(¶ms, OsRng),
|
||||
DkgKeyPair::new(params, OsRng),
|
||||
KeyPair::new(),
|
||||
);
|
||||
state.set_node_index(Some(self_index));
|
||||
let keypairs = insert_dealers(¶ms, &dealer_details_db);
|
||||
let keypairs = insert_dealers(params, &dealer_details_db);
|
||||
|
||||
let contract_state = dkg_client.get_contract_state().await.unwrap();
|
||||
|
||||
@@ -239,11 +239,11 @@ pub(crate) mod tests {
|
||||
PathBuf::default(),
|
||||
PersistentState::default(),
|
||||
Url::parse("localhost:8000").unwrap(),
|
||||
DkgKeyPair::new(¶ms, OsRng),
|
||||
DkgKeyPair::new(params, OsRng),
|
||||
KeyPair::new(),
|
||||
);
|
||||
state.set_node_index(Some(self_index));
|
||||
insert_dealers(¶ms, &dealer_details_db);
|
||||
insert_dealers(params, &dealer_details_db);
|
||||
|
||||
dealer_details_db
|
||||
.write()
|
||||
|
||||
@@ -68,6 +68,8 @@ pub(crate) struct DummyClient {
|
||||
contract_state: Arc<RwLock<ContractState>>,
|
||||
dealer_details: Arc<RwLock<HashMap<String, (DealerDetails, bool)>>>,
|
||||
threshold: Arc<RwLock<Option<Threshold>>>,
|
||||
// it's a really bad practice, but I'm not going to be changing it now...
|
||||
#[allow(clippy::type_complexity)]
|
||||
dealings: Arc<RwLock<HashMap<EpochId, HashMap<String, Vec<PartialContractDealing>>>>>,
|
||||
verification_share: Arc<RwLock<HashMap<String, ContractVKShare>>>,
|
||||
group_db: Arc<RwLock<HashMap<String, MemberResponse>>>,
|
||||
@@ -136,6 +138,8 @@ impl DummyClient {
|
||||
self
|
||||
}
|
||||
|
||||
// it's a really bad practice, but I'm not going to be changing it now...
|
||||
#[allow(clippy::type_complexity)]
|
||||
pub fn with_dealings(
|
||||
mut self,
|
||||
dealings: &Arc<RwLock<HashMap<EpochId, HashMap<String, Vec<PartialContractDealing>>>>>,
|
||||
|
||||
Reference in New Issue
Block a user