mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 23:38:10 -05:00
chore: msrv 1.88 (#17782)
This commit is contained in:
@@ -449,7 +449,7 @@ struct OrderedBodiesResponse<B: Block> {
|
||||
|
||||
impl<B: Block> OrderedBodiesResponse<B> {
|
||||
#[inline]
|
||||
fn len(&self) -> usize {
|
||||
const fn len(&self) -> usize {
|
||||
self.resp.len()
|
||||
}
|
||||
|
||||
|
||||
@@ -437,7 +437,7 @@ impl ChunkedFileReader {
|
||||
|
||||
/// Calculates the number of bytes to read from the chain file. Returns a tuple of the chunk
|
||||
/// length and the remaining file length.
|
||||
fn chunk_len(&self) -> u64 {
|
||||
const fn chunk_len(&self) -> u64 {
|
||||
let Self { chunk_byte_len, file_byte_len, .. } = *self;
|
||||
let file_byte_len = file_byte_len + self.chunk.len() as u64;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ impl TestBodiesClient {
|
||||
/// empty_response_mod == 0`.
|
||||
pub(crate) fn should_respond_empty(&self) -> bool {
|
||||
if let Some(empty_response_mod) = self.empty_response_mod {
|
||||
self.times_requested.load(Ordering::Relaxed) % empty_response_mod == 0
|
||||
self.times_requested.load(Ordering::Relaxed).is_multiple_of(empty_response_mod)
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user