Skip to content

Commit 7a935f9

Browse files
committed
cargo fmt
1 parent 5181bef commit 7a935f9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Diff for: pallets/admin-utils/src/benchmarking.rs

+12-3
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ mod benchmarks {
135135

136136
#[benchmark]
137137
fn sudo_set_kappa() {
138-
pallet_subtensor::Pallet::<T>::init_new_network(1u16 /*netuid*/, 1u16 /*sudo_tempo*/);
138+
pallet_subtensor::Pallet::<T>::init_new_network(
139+
1u16, /*netuid*/
140+
1u16, /*sudo_tempo*/
141+
);
139142

140143
#[extrinsic_call]
141144
_(RawOrigin::Root, 1u16/*netuid*/, 3u16/*kappa*/)/*set_kappa*/;
@@ -226,15 +229,21 @@ mod benchmarks {
226229

227230
#[benchmark]
228231
fn sudo_set_commit_reveal_weights_interval() {
229-
pallet_subtensor::Pallet::<T>::init_new_network(1u16 /*netuid*/, 1u16 /*sudo_tempo*/);
232+
pallet_subtensor::Pallet::<T>::init_new_network(
233+
1u16, /*netuid*/
234+
1u16, /*sudo_tempo*/
235+
);
230236

231237
#[extrinsic_call]
232238
_(RawOrigin::Root, 1u16/*netuid*/, 3u64/*interval*/)/*set_commit_reveal_weights_interval()*/;
233239
}
234240

235241
#[benchmark]
236242
fn sudo_set_commit_reveal_weights_enabled() {
237-
pallet_subtensor::Pallet::<T>::init_new_network(1u16 /*netuid*/, 1u16 /*sudo_tempo*/);
243+
pallet_subtensor::Pallet::<T>::init_new_network(
244+
1u16, /*netuid*/
245+
1u16, /*sudo_tempo*/
246+
);
238247

239248
#[extrinsic_call]
240249
_(RawOrigin::Root, 1u16/*netuid*/, true/*enabled*/)/*set_commit_reveal_weights_enabled*/;

0 commit comments

Comments
 (0)