mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
remove unnecesary closures
This commit is contained in:
@@ -853,7 +853,7 @@ impl Service {
|
|||||||
let max_log_requests_per_update = self
|
let max_log_requests_per_update = self
|
||||||
.config()
|
.config()
|
||||||
.max_log_requests_per_update
|
.max_log_requests_per_update
|
||||||
.unwrap_or_else(|| usize::MAX);
|
.unwrap_or(usize::MAX);
|
||||||
|
|
||||||
let range = {
|
let range = {
|
||||||
match new_block_numbers {
|
match new_block_numbers {
|
||||||
@@ -996,10 +996,7 @@ impl Service {
|
|||||||
) -> Result<BlockCacheUpdateOutcome, Error> {
|
) -> Result<BlockCacheUpdateOutcome, Error> {
|
||||||
let client = self.client();
|
let client = self.client();
|
||||||
let block_cache_truncation = self.config().block_cache_truncation;
|
let block_cache_truncation = self.config().block_cache_truncation;
|
||||||
let max_blocks_per_update = self
|
let max_blocks_per_update = self.config().max_blocks_per_update.unwrap_or(usize::MAX);
|
||||||
.config()
|
|
||||||
.max_blocks_per_update
|
|
||||||
.unwrap_or_else(|| usize::MAX);
|
|
||||||
|
|
||||||
let range = {
|
let range = {
|
||||||
match new_block_numbers {
|
match new_block_numbers {
|
||||||
|
|||||||
Reference in New Issue
Block a user