Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 committed Feb 21, 2024
1 parent d88bdbf commit c327beb
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 23 deletions.
3 changes: 2 additions & 1 deletion src/vit-testing/iapyx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ mod exports {
};
pub use crate::load::{
ArtificialUserLoad, ArtificialUserLoadError, MultiController, MultiControllerError,
NodeLoad, NodeLoadConfig, NodeLoadError, ServicingStationLoad, ServicingStationLoadError,
NodeLoad, NodeLoadError, ServicingStationLoad, ServicingStationLoadError,
VoteStatusProvider, WalletRequestGen,
};

pub use crate::utils::{expiry, qr};
pub use crate::wallet::{Error as WalletError, Wallet};
}
2 changes: 1 addition & 1 deletion src/vit-testing/iapyx/src/load/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod config;
pub mod config;
mod multi_controller;
mod request_generators;
mod scenario;
Expand Down
2 changes: 1 addition & 1 deletion src/vit-testing/iapyx/src/load/scenario/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::load::multi_controller::MultiControllerError;
use crate::load::request_generators::RequestGenError;
use crate::load::request_generators::{BatchWalletRequestGen, WalletRequestGen};
use crate::load::status_provider::VoteStatusProvider;
use crate::load::NodeLoadConfig;
use crate::NodeLoadConfig;
use crate::NodeLoadError;
use jortestkit::measurement::EfficiencyBenchmarkFinish;
use thiserror::Error;
Expand Down
4 changes: 2 additions & 2 deletions src/vit-testing/vitup/src/builders/helpers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
mod archive;
mod qr;
pub mod qr;
mod static_data;
mod time;
mod vote_plan;
pub mod vote_plan;

pub use self::time::{convert_to_blockchain_date, convert_to_human_date};
pub use archive::{
Expand Down
1 change: 0 additions & 1 deletion src/vit-testing/vitup/src/builders/helpers/vote_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use chain_impl_mockchain::testing::scenario::template::ProposalDefBuilder;
use chain_impl_mockchain::testing::TestGen;
use hersir::builder::VotePlanKey;
use hersir::config::{CommitteeTemplate, PrivateParameters, VotePlanTemplate};
pub use jormungandr_lib::interfaces::Initial;
use jormungandr_lib::interfaces::{BlockDate, TokenIdentifier};
use std::iter;

Expand Down
6 changes: 3 additions & 3 deletions src/vit-testing/vitup/src/builders/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
mod helpers;
pub mod helpers;
mod reviews;
pub mod utils;

use crate::builders::helpers::VitVotePlanDefBuilder;
pub use crate::builders::helpers::{build_current_fund, build_servicing_station_parameters};
use crate::builders::utils::DeploymentTree;
use crate::config;
Expand All @@ -17,14 +18,13 @@ use config::Block0Initial::Wallet;
pub use helpers::{
convert_to_blockchain_date, convert_to_human_date, discover_archive_input_files,
generate_qr_and_hashes, get_configuration_from_file_url, ArchiveConfError,
ArchiveConfiguration, VitVotePlanDefBuilder, WalletExtension,
ArchiveConfiguration,
};
use hersir::builder::settings::Blockchain;
use hersir::builder::Node;
use hersir::builder::Topology;
use hersir::config::{CommitteeTemplate, ExplorerTemplate, SessionSettings, WalletTemplate};
use jormungandr_automation::jormungandr::PersistenceMode;
pub use jormungandr_lib::interfaces::Initial;
use jormungandr_lib::interfaces::NumberOfSlotsPerEpoch;
use jormungandr_lib::interfaces::SlotDuration;
use jormungandr_lib::interfaces::TokenIdentifier as TokenIdentifierLib;
Expand Down
2 changes: 1 addition & 1 deletion src/vit-testing/vitup/src/cli/generate/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod random;

use crate::Result;
pub use external::ExternalDataCommandArgs;
pub use jormungandr_lib::interfaces::Initial;

pub use perf::PerfDataCommandArgs;
pub use random::{
AllRandomDataCommandArgs, RandomReviewsDataCommandArgs, RandomScoresDataCommandArgs,
Expand Down
1 change: 0 additions & 1 deletion src/vit-testing/vitup/src/cli/start/quick.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::builders::utils::logger;
pub use crate::builders::{VitBackendSettingsBuilder, FOLLOWER, LEADER_1, LEADER_2, LEADER_3};
use crate::config::read_voter_hirs;
use crate::config::ConfigBuilder;
use crate::config::{
Expand Down
6 changes: 1 addition & 5 deletions src/vit-testing/vitup/src/config/builder.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pub use crate::builders::ReviewGenerator;
pub use crate::builders::{
convert_to_blockchain_date, convert_to_human_date, generate_qr_and_hashes,
VitVotePlanDefBuilder, WalletExtension,
};
pub use crate::builders::convert_to_human_date;
use crate::config::Block0Initials;
use crate::config::{date_format, Initials};
use crate::config::{Config, VoteTime};
Expand Down
6 changes: 3 additions & 3 deletions src/vit-testing/vitup/src/mode/standard/controllers/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::{
super::VitSettings,
vit_station::{
dump_settings_to_file, BootstrapCommandBuilder, DbGenerator,
Error as VitStationControllerError, RestClient, ValidVotePlanParameters,
ValidVotingTemplateGenerator, VitStationController, VIT_CONFIG,
controller::VitStationController, controller::VIT_CONFIG, dump_settings_to_file,
BootstrapCommandBuilder, DbGenerator, Error as VitStationControllerError, RestClient,
ValidVotePlanParameters, ValidVotingTemplateGenerator,
},
wallet_proxy::{Error as WalletProxyError, WalletProxyController, WalletProxySpawnParams},
};
Expand Down
4 changes: 2 additions & 2 deletions src/vit-testing/vitup/src/mode/standard/controllers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mod explorer;
mod main;
mod vit_station;
pub mod vit_station;
mod wallet_proxy;

pub use vit_station::{
controller::VitStationController, controller::VitStationSettings, controller::VIT_CONFIG,
generate_database, generate_random_database, DataError, DbGenerator,
Error as VitStationControllerError, ValidVotePlanParameters, ValidVotingTemplateGenerator,
VitStationController, VitStationSettings,
};

pub use wallet_proxy::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod controller;
pub mod controller;
mod data;

pub use vit_servicing_station_tests::common::{
Expand All @@ -12,7 +12,6 @@ pub use vit_servicing_station_tests::common::{

pub use vit_servicing_station_lib::server::settings::dump_settings_to_file;

pub use controller::{VitStationController, VitStationSettings, VIT_CONFIG, VIT_STATION_LOG};
pub use data::{generate_database, generate_random_database, DbGenerator, Error as DataError};
use std::time::Duration;
pub type Result<T> = std::result::Result<T, Error>;
Expand Down

0 comments on commit c327beb

Please sign in to comment.