mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
remove unused entry struct
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
use std::{
|
use std::{collections::VecDeque, sync::Arc};
|
||||||
collections::{hash_map::OccupiedEntry, VecDeque},
|
|
||||||
sync::Arc,
|
|
||||||
};
|
|
||||||
|
|
||||||
use types::{
|
use types::{
|
||||||
signed_block_and_blobs::BlockWrapper, BlobsSidecar, EthSpec, SignedBeaconBlock,
|
signed_block_and_blobs::BlockWrapper, BlobsSidecar, EthSpec, SignedBeaconBlock,
|
||||||
@@ -25,18 +22,6 @@ pub struct BlockBlobRequestInfo<T: EthSpec> {
|
|||||||
is_sidecar_rpc_finished: bool,
|
is_sidecar_rpc_finished: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct BlockBlobRequestEntry<'a, K, T: EthSpec> {
|
|
||||||
entry: OccupiedEntry<'a, K, BlockBlobRequestInfo<T>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a, K, T: EthSpec> From<OccupiedEntry<'a, K, BlockBlobRequestInfo<T>>>
|
|
||||||
for BlockBlobRequestEntry<'a, K, T>
|
|
||||||
{
|
|
||||||
fn from(entry: OccupiedEntry<'a, K, BlockBlobRequestInfo<T>>) -> Self {
|
|
||||||
BlockBlobRequestEntry { entry }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T: EthSpec> BlockBlobRequestInfo<T> {
|
impl<T: EthSpec> BlockBlobRequestInfo<T> {
|
||||||
pub fn add_block_response(&mut self, maybe_block: Option<Arc<SignedBeaconBlock<T>>>) {
|
pub fn add_block_response(&mut self, maybe_block: Option<Arc<SignedBeaconBlock<T>>>) {
|
||||||
match maybe_block {
|
match maybe_block {
|
||||||
|
|||||||
Reference in New Issue
Block a user