-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:temp file write timing issue #189
Conversation
Hi @somewind , Thanks for this PR. |
Delay waiting, which is a good idea, but I think writing file is fast. If you move the logic to mv, does it add complexity to the code? |
I mean wait for resolving finish promise in mv method individually instead of waiting resolving all promises after busboy finish event triggered. In such case we don't need waits array and all code stuff which mange waits array. Hope that clarify my idea. |
I fixed it, Please check changes again. |
This looks good to me @RomanBurunkov - I'm going to merge by EOD unless you have any reservations. |
I have modified it as you said, please check the PR again, or if you have any other suggestions 😃 |
Yeap, I've seen that. |
How about making 'writePromise' available to the user? You can use |
Cool idea, but looks too complicated to use. |
OK, understand. I have rolled back this PR to the previous version with an array of uploads, please check again. |
#184 use promise to fix this bug