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 24b5086b4e
commit 809b9f5d6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {