Skip to content
Snippets Groups Projects
Commit 6148c7ce authored by Nikolay Volf's avatar Nikolay Volf Committed by GitHub
Browse files

do join_all (#4832)

parent db4c8c03
No related merge requests found
......@@ -378,8 +378,13 @@ impl<B: ChainApi> Pool<B> {
let block_number = self.resolve_block_number(at)?;
let mut result = HashMap::new();
for xt in xts {
let (hash, validated_tx) = self.verify_one(at, block_number, xt, force).await;
for (hash, validated_tx) in
futures::future::join_all(
xts.into_iter()
.map(|xt| self.verify_one(at, block_number, xt, force))
)
.await
{
result.insert(hash, validated_tx);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment