diff --git a/beacon_node/eth1/src/service.rs b/beacon_node/eth1/src/service.rs index 32608b3480..9cc1da1382 100644 --- a/beacon_node/eth1/src/service.rs +++ b/beacon_node/eth1/src/service.rs @@ -853,7 +853,7 @@ impl Service { let max_log_requests_per_update = self .config() .max_log_requests_per_update - .unwrap_or_else(|| usize::MAX); + .unwrap_or(usize::MAX); let range = { match new_block_numbers { @@ -996,10 +996,7 @@ impl Service { ) -> Result { let client = self.client(); let block_cache_truncation = self.config().block_cache_truncation; - let max_blocks_per_update = self - .config() - .max_blocks_per_update - .unwrap_or_else(|| usize::MAX); + let max_blocks_per_update = self.config().max_blocks_per_update.unwrap_or(usize::MAX); let range = { match new_block_numbers {