diff options
author | cjihrig <cjihrig@gmail.com> | 2019-11-25 15:31:44 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-11-27 18:27:11 -0500 |
commit | 7e85f068a48b284a253abcb5eb3173320869b8fe (patch) | |
tree | d29f0cd4a6ed32e156dadc0019b4f920258e8853 /lib/internal/fs/utils.js | |
parent | 4059055739c1c395c00cf989d77073e862f9dae6 (diff) | |
download | android-node-v8-7e85f068a48b284a253abcb5eb3173320869b8fe.tar.gz android-node-v8-7e85f068a48b284a253abcb5eb3173320869b8fe.tar.bz2 android-node-v8-7e85f068a48b284a253abcb5eb3173320869b8fe.zip |
fs: make rimraf default to 0 retries
This commit makes retries an opt-in feature by defaulting
to no automatic retries. This will be particularly important
once synchronous operations can sleep between attempts.
Refs: https://github.com/nodejs/node/issues/30580
PR-URL: https://github.com/nodejs/node/pull/30644
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/fs/utils.js')
-rw-r--r-- | lib/internal/fs/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js index 660c81f454..5274d74cdb 100644 --- a/lib/internal/fs/utils.js +++ b/lib/internal/fs/utils.js @@ -567,7 +567,7 @@ function warnOnNonPortableTemplate(template) { const defaultRmdirOptions = { emfileWait: 1000, - maxRetries: 3, + maxRetries: 0, recursive: false, }; |