Remove useless retry-loop

This was needed in the past although we would never enter the loop. But call
unwrap directly would fail.
This commit is contained in:
Julien Cretin
2021-10-07 21:44:06 +02:00
committed by Julien Cretin
parent 9b780ef7d7
commit 4eb7f02985

View File

@@ -113,11 +113,7 @@ fn compute_latency(
let ((), time) = measure(timer, || {
for i in 0..count {
let key = 1 + key_increment * i;
// For some reason the kernel sometimes fails.
while store.insert(key, &vec![0; 4 * word_length]).is_err() {
// We never enter this loop in practice, but we still need it for the kernel.
writeln!(console, "Retry insert.").unwrap();
}
store.insert(key, &vec![0; 4 * word_length]).unwrap();
}
});
writeln!(console, "Setup: {:.1}ms for {} entries.", time.ms(), count).unwrap();