datasource/ethereum: Return boxed future without assignemnt
@@ -878,8 +878,8 @@ where
.collect::<HashSet<H160>>()
.into_iter()
.collect::<Vec<H160>>();
- let blocks = eth
- .trace_stream(&logger, from, to, addresses)
+ Box::new(
+ eth.trace_stream(&logger, from, to, addresses)
.collect()
.map(move |trace_chunks| {
match trace_chunks.len() {
@@ -926,8 +926,8 @@ where
}
}
block_ptrs
- });
- Box::new(blocks)
+ }),
+ )
}
fn contract_call(
