Uh oh!
There was an error while loading. Please reload this page.
[FG5] Fix DownloadAssets race condition - #801
Conversation
LexManos
commented
Jun 28, 2021
This should be done in the first pass, filter out all the keys that are duplicates. |
shartte
commented
Jun 28, 2021
Which first pass? Stream.distinct wouldn't help here since the keys are unique, the paths aren't. |
LexManos
commented
Jun 28, 2021
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
3195a0dCompareThis happens if two assets use the same remote file, and causes the validation to fail sometimes.
3195a0d to
09b6860Compareshartte
commented
Jun 28, 2021
Alright I've changed it. Is this better? |
Fixes#800.