mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 02:33:48 +00:00
Apply reviewers suggestions
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
#![allow(clippy::type_complexity)]
|
||||||
|
#![allow(clippy::cognitive_complexity)]
|
||||||
|
|
||||||
use super::methods::{RPCErrorResponse, RPCResponse, RequestId};
|
use super::methods::{RPCErrorResponse, RPCResponse, RequestId};
|
||||||
use super::protocol::{RPCError, RPCProtocol, RPCRequest};
|
use super::protocol::{RPCError, RPCProtocol, RPCRequest};
|
||||||
use super::RPCEvent;
|
use super::RPCEvent;
|
||||||
|
|||||||
@@ -22,11 +22,8 @@ use std::time::Duration;
|
|||||||
use tokio::io::{AsyncRead, AsyncWrite};
|
use tokio::io::{AsyncRead, AsyncWrite};
|
||||||
|
|
||||||
pub(crate) mod codec;
|
pub(crate) mod codec;
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
#[allow(clippy::congitive_complexity)]
|
|
||||||
mod handler;
|
mod handler;
|
||||||
pub mod methods;
|
pub mod methods;
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
mod protocol;
|
mod protocol;
|
||||||
|
|
||||||
/// The return type used in the behaviour and the resultant event from the protocols handler.
|
/// The return type used in the behaviour and the resultant event from the protocols handler.
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::type_complexity)]
|
||||||
|
|
||||||
use super::methods::*;
|
use super::methods::*;
|
||||||
use crate::rpc::{
|
use crate::rpc::{
|
||||||
codec::{
|
codec::{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/// This crate provides the network server for Lighthouse.
|
/// This crate provides the network server for Lighthouse.
|
||||||
pub mod error;
|
pub mod error;
|
||||||
#[allow(clippy::unit_arg)]
|
|
||||||
pub mod message_handler;
|
pub mod message_handler;
|
||||||
pub mod service;
|
pub mod service;
|
||||||
pub mod sync;
|
pub mod sync;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::unit_arg)]
|
||||||
use crate::error;
|
use crate::error;
|
||||||
use crate::service::NetworkMessage;
|
use crate::service::NetworkMessage;
|
||||||
use crate::sync::MessageProcessor;
|
use crate::sync::MessageProcessor;
|
||||||
|
|||||||
@@ -965,7 +965,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
|||||||
|
|
||||||
// remove any fully processed parent chains
|
// remove any fully processed parent chains
|
||||||
self.parent_queue
|
self.parent_queue
|
||||||
.retain(|req| !(req.state == BlockRequestsState::ReadyToProcess));
|
.retain(|req| req.state != BlockRequestsState::ReadyToProcess);
|
||||||
re_run_poll
|
re_run_poll
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user