remove unused entry struct

This commit is contained in:
Diva M 2022-12-22 17:34:01 -05:00
parent 847f0de0ea
commit fbc147e273
No known key found for this signature in database
GPG Key ID: 1BAE5E01126680FE

View File

@ -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 {