mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
lint
This commit is contained in:
@@ -1080,7 +1080,7 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
|
|||||||
.iter()
|
.iter()
|
||||||
.filter(|&(_epoch, batch)| in_buffer(batch))
|
.filter(|&(_epoch, batch)| in_buffer(batch))
|
||||||
.count()
|
.count()
|
||||||
>= self.batch_buffer_size as usize
|
>= self.batch_buffer_size
|
||||||
{
|
{
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
@@ -1110,7 +1110,7 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
|
|||||||
/// batch states. See [BatchState::visualize] for symbol definitions.
|
/// batch states. See [BatchState::visualize] for symbol definitions.
|
||||||
#[instrument(parent = None,level = "info", fields(chain = self.id , service = "range_sync"), skip_all)]
|
#[instrument(parent = None,level = "info", fields(chain = self.id , service = "range_sync"), skip_all)]
|
||||||
fn visualize_batch_state(&self) -> String {
|
fn visualize_batch_state(&self) -> String {
|
||||||
let mut visualization_string = String::with_capacity((self.batch_buffer_size * 3) as usize);
|
let mut visualization_string = String::with_capacity(self.batch_buffer_size * 3);
|
||||||
|
|
||||||
// Start of the block
|
// Start of the block
|
||||||
visualization_string.push('[');
|
visualization_string.push('[');
|
||||||
|
|||||||
Reference in New Issue
Block a user