Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: make progress bar work again when adding files #2386

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

achingbrain
Copy link
Member

Pulled out of #2379.

We used to buffer all hashes of added files and sort them before outputting to the terminal, I think this might be because the glob module does not return stable results. This gives a poor user experience as you see nothing then everything, compared to go-ipfs which prints out the hashes as they become available. The tradeoff is the order might be slightly different between invocations, though the hashes are always the same as we sort DAGNode links before serializing so it doesn't matter what order you import them in.

Bleugh.

Anyway - this will be addressed as part of #2379 so the changes to the files test should only be temporary.

@alanshaw alanshaw merged commit f6dcb0f into master Aug 27, 2019
@alanshaw alanshaw deleted the fix-up-progress-bar branch August 27, 2019 08:02
@alanshaw alanshaw mentioned this pull request Aug 27, 2019
66 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants