[FG5] Fix DownloadAssets race condition#801
Conversation
|
This should be done in the first pass, filter out all the keys that are duplicates. |
|
Which first pass? Stream.distinct wouldn't help here since the keys are unique, the paths aren't. |
|
yes, but you can filter it out above the loop instead of inside it. |
|
Hm yes, i wanted to do this with minimal changes. p.s.: if you think filtering it out first is better, i'll just do it. |
|
Filtering out first keeps the logical blocks small and simple to understand. You could just do something like: |
938b33f to
3195a0d
Compare
This happens if two assets use the same remote file, and causes the validation to fail sometimes.
3195a0d to
09b6860
Compare
|
Alright I've changed it. Is this better? |
Fixes #800.