mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Apply reviewers suggestions
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/// This crate provides the network server for Lighthouse.
|
||||
pub mod error;
|
||||
#[allow(clippy::unit_arg)]
|
||||
pub mod message_handler;
|
||||
pub mod service;
|
||||
pub mod sync;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#![allow(clippy::unit_arg)]
|
||||
use crate::error;
|
||||
use crate::service::NetworkMessage;
|
||||
use crate::sync::MessageProcessor;
|
||||
|
||||
@@ -965,7 +965,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
|
||||
// remove any fully processed parent chains
|
||||
self.parent_queue
|
||||
.retain(|req| !(req.state == BlockRequestsState::ReadyToProcess));
|
||||
.retain(|req| req.state != BlockRequestsState::ReadyToProcess);
|
||||
re_run_poll
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user