Skip to content
Snippets Groups Projects
Commit ce8073fd authored by Shae Erisson's avatar Shae Erisson
Browse files

no really, use mapConcurrently

parent 5d83d0ea
No related branches found
No related tags found
1 merge request!12fetch all the shares at the same time
Pipeline #5017 passed
......@@ -123,7 +123,7 @@ executeDownloadTasks ::
-- | The results of all successful downloads.
m [DownloadedShare]
executeDownloadTasks storageIndex tasks = do
downloadResults <- mapM (downloadShare storageIndex) tasks
downloadResults <- liftIO $ mapConcurrently (downloadShare storageIndex) tasks
pure . rights $ inject <$> downloadResults
where
inject (a, b) = (a,) <$> b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment