Skip to content

Commit cbca1c3

Browse files
committed
chore: fmt
1 parent 213b7b1 commit cbca1c3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pallets/subtensor/src/tests/epoch.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -983,25 +983,25 @@ fn test_512_graph_random_weights() {
983983
// }
984984

985985
fn next_block_no_epoch(netuid: u16) -> u64 {
986-
// high tempo to skip automatic epochs in on_initialize
987-
let high_tempo: u16 = u16::MAX - 1;
988-
let old_tempo: u16 = SubtensorModule::get_tempo(netuid);
986+
// high tempo to skip automatic epochs in on_initialize
987+
let high_tempo: u16 = u16::MAX - 1;
988+
let old_tempo: u16 = SubtensorModule::get_tempo(netuid);
989989

990-
SubtensorModule::set_tempo(netuid, high_tempo);
991-
let new_block = next_block();
992-
SubtensorModule::set_tempo(netuid, old_tempo);
990+
SubtensorModule::set_tempo(netuid, high_tempo);
991+
let new_block = next_block();
992+
SubtensorModule::set_tempo(netuid, old_tempo);
993993

994-
new_block
994+
new_block
995995
}
996996

997997
fn run_to_block_no_epoch(netuid: u16, n: u64) {
998-
// high tempo to skip automatic epochs in on_initialize
999-
let high_tempo: u16 = u16::MAX - 1;
1000-
let old_tempo: u16 = SubtensorModule::get_tempo(netuid);
998+
// high tempo to skip automatic epochs in on_initialize
999+
let high_tempo: u16 = u16::MAX - 1;
1000+
let old_tempo: u16 = SubtensorModule::get_tempo(netuid);
10011001

1002-
SubtensorModule::set_tempo(netuid, high_tempo);
1003-
run_to_block(n);
1004-
SubtensorModule::set_tempo(netuid, old_tempo);
1002+
SubtensorModule::set_tempo(netuid, high_tempo);
1003+
run_to_block(n);
1004+
SubtensorModule::set_tempo(netuid, old_tempo);
10051005
}
10061006

10071007
// Test bonds exponential moving average over a sequence of epochs.

0 commit comments

Comments
 (0)