Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid5594 committed Nov 27, 2023
1 parent b9ddbfa commit 848512d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions pallets/ddc-clusters/src/benchmarking.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
//! DdcStaking pallet benchmarking.

use super::*;
use crate::{cluster::ClusterProps, Pallet as DdcClusters};
use ddc_primitives::{ClusterGovParams, ClusterId, ClusterParams, NodePubKey};

use pallet_contracts::chain_extension::UncheckedFrom;
use sp_runtime::{AccountId32, Perbill};
use sp_std::prelude::*;

pub use frame_benchmarking::{
account, benchmarks, impl_benchmark_test_suite, whitelist_account, whitelisted_caller,
BenchmarkError,
};
use frame_system::RawOrigin;
use pallet_contracts::chain_extension::UncheckedFrom;
use sp_runtime::{AccountId32, Perbill};
use sp_std::prelude::*;
use testing_utils::*;

use super::*;
use crate::{cluster::ClusterProps, Pallet as DdcClusters};

const USER_SEED: u32 = 999666;
const USER_SEED_2: u32 = 999555;

Expand Down
13 changes: 6 additions & 7 deletions pallets/ddc-clusters/src/testing_utils.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
//! DdcStaking pallet benchmarking.

use crate::{Pallet as DdcClusters, *};
use ddc_primitives::{
CDNNodeParams, ClusterGovParams, ClusterId, ClusterParams, NodeParams, NodePubKey,
};

use pallet_contracts::chain_extension::UncheckedFrom;
use pallet_ddc_nodes::Node;
use sp_runtime::Perbill;
use sp_std::prelude::*;

pub use frame_benchmarking::{
account, benchmarks, impl_benchmark_test_suite, whitelist_account, whitelisted_caller,
BenchmarkError,
};
use frame_system::RawOrigin;
use pallet_contracts::chain_extension::UncheckedFrom;
use pallet_ddc_nodes::Node;
use sp_runtime::Perbill;
use sp_std::prelude::*;

use crate::{Pallet as DdcClusters, *};

pub fn config_cluster<T: Config>(user: T::AccountId, cluster_id: ClusterId)
where
Expand Down

0 comments on commit 848512d

Please sign in to comment.