Bump alloy to 0.8.0 (#13268)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
morito
2024-12-11 05:06:21 +09:00
committed by GitHub
parent 62e2cbfe86
commit 73f1583455
14 changed files with 192 additions and 216 deletions

View File

@ -42,7 +42,7 @@ impl InvalidHeaderCache {
let entry = self.headers.get(hash)?;
entry.hit_count += 1;
if entry.hit_count < INVALID_HEADER_HIT_EVICTION_THRESHOLD {
return Some(entry.header.clone())
return Some(entry.header)
}
}
// if we get here, the entry has been hit too many times, so we evict it