mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-10 21:11:22 +00:00
remove unused entry struct
This commit is contained in:
parent
847f0de0ea
commit
fbc147e273
@ -1,7 +1,4 @@
|
||||
use std::{
|
||||
collections::{hash_map::OccupiedEntry, VecDeque},
|
||||
sync::Arc,
|
||||
};
|
||||
use std::{collections::VecDeque, sync::Arc};
|
||||
|
||||
use types::{
|
||||
signed_block_and_blobs::BlockWrapper, BlobsSidecar, EthSpec, SignedBeaconBlock,
|
||||
@ -25,18 +22,6 @@ pub struct BlockBlobRequestInfo<T: EthSpec> {
|
||||
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> {
|
||||
pub fn add_block_response(&mut self, maybe_block: Option<Arc<SignedBeaconBlock<T>>>) {
|
||||
match maybe_block {
|
||||
|
Loading…
Reference in New Issue
Block a user