Skip to content
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

chore: remove tmp files and don't block the request's response #33

Merged
merged 1 commit into from
May 19, 2019

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented May 19, 2019

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@fengmk2 fengmk2 requested a review from atian25 May 19, 2019 11:13
await ctx.cleanupRequestFiles();
// remove tmp files and don't block the request's response
// cleanupRequestFiles won't throw error even remove file io error happen
ctx.cleanupRequestFiles();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这才是最好的方式。

@codecov
Copy link

codecov bot commented May 19, 2019

Codecov Report

Merging #33 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #33   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files           5        5           
  Lines         183      183           
=======================================
  Hits          178      178           
  Misses          5        5

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5a41a2...64e66df. Read the comment docs.

@fengmk2 fengmk2 merged commit c5ca3ea into master May 19, 2019
@fengmk2 fengmk2 deleted the clean-files-async branch May 19, 2019 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants