mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 20:22:02 +00:00
lints
This commit is contained in:
@@ -32,7 +32,7 @@ impl<T: EthSpec> BlocksAndBlobsRequestInfo<T> {
|
||||
pub fn into_responses(self) -> Result<Vec<TempBlockWrapper<T>>, &'static str> {
|
||||
let BlocksAndBlobsRequestInfo {
|
||||
accumulated_blocks,
|
||||
mut accumulated_sidecars,
|
||||
accumulated_sidecars,
|
||||
..
|
||||
} = self;
|
||||
|
||||
|
||||
@@ -875,8 +875,8 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
fn rpc_blobs_received(
|
||||
&mut self,
|
||||
request_id: RequestId,
|
||||
peer_id: PeerId,
|
||||
maybe_blob: Option<Arc<BlobSidecar<<T>::EthSpec>>>,
|
||||
_peer_id: PeerId,
|
||||
_maybe_blob: Option<Arc<BlobSidecar<<T>::EthSpec>>>,
|
||||
_seen_timestamp: Duration,
|
||||
) {
|
||||
match request_id {
|
||||
@@ -892,7 +892,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
RequestId::RangeBlocks { .. } => {
|
||||
unreachable!("Only-blocks range requests don't receive sidecars")
|
||||
}
|
||||
RequestId::RangeBlobs { id } => {
|
||||
RequestId::RangeBlobs { id: _ } => {
|
||||
unimplemented!("Adjust range");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user