Skip to content

Commit 7825581

Browse files
committed
fix: order of probes (#342)
Signed-off-by: usamoi <usamoi@outlook.com>
1 parent 8f49bf2 commit 7825581

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/vchordrq/src/search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ where
123123
})
124124
};
125125

126-
for i in (1..height_of_root).rev() {
126+
for i in 1..height_of_root {
127127
state = step(state).take(probes[i as usize - 1] as _).collect();
128128
}
129129

@@ -265,7 +265,7 @@ where
265265
};
266266

267267
let mut it = None;
268-
for i in (1..height_of_root).rev() {
268+
for i in 1..height_of_root {
269269
let it = it.insert(step(state));
270270
state = it.take(probes[i as usize - 1] as _).collect();
271271
}

0 commit comments

Comments
 (0)