feat(hardano): enable async for read_blocks_from_point iterator (#379)

This commit is contained in:
Felipe Rosa 2024-01-25 08:44:24 -03:00 committed by GitHub
parent acdceb993f
commit 65360b954d

View file

@ -200,7 +200,7 @@ pub fn read_blocks(dir: &Path) -> Result<impl Iterator<Item = FallibleBlock>, st
pub fn read_blocks_from_point(
dir: &Path,
point: Point,
) -> Result<Box<dyn Iterator<Item = FallibleBlock>>, Box<dyn std::error::Error>> {
) -> Result<Box<dyn Iterator<Item = FallibleBlock> + Send + Sync>, Box<dyn std::error::Error>> {
let names = build_stack_of_chunk_names(dir)?;
match point {