remove unnecessary yield_now
This commit is contained in:
parent
fd3b582422
commit
08e03f19c9
|
@ -430,8 +430,6 @@ impl Web3Rpc {
|
||||||
}
|
}
|
||||||
|
|
||||||
limit = Some(block_data_limit);
|
limit = Some(block_data_limit);
|
||||||
|
|
||||||
yield_now().await;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(limit) = limit {
|
if let Some(limit) = limit {
|
||||||
|
@ -606,16 +604,6 @@ impl Web3Rpc {
|
||||||
|
|
||||||
// we are synced! yey!
|
// we are synced! yey!
|
||||||
|
|
||||||
// TODO: checking this every time seems excessive
|
|
||||||
if self.block_data_limit() == U64::zero() {
|
|
||||||
if let Err(err) = self.check_block_data_limit().await {
|
|
||||||
warn!(
|
|
||||||
"failed checking block limit after {} finished syncing. {:?}",
|
|
||||||
self, err
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Some(new_head_block)
|
Some(new_head_block)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue