Skip to content

Commit ecfef3b

Browse files
committed
fs: set fs.watchFile poll interval to 1s
1 parent 5af2021 commit ecfef3b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/fs.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,10 +2359,7 @@ function watchFile(filename, options, listener) {
23592359
}
23602360

23612361
options = {
2362-
// Poll interval in milliseconds. 5007 is what libev used to use. It's
2363-
// a little on the slow side but let's stick with it for now to keep
2364-
// behavioral changes to a minimum.
2365-
interval: 5007,
2362+
interval: 1000,
23662363
persistent: true,
23672364
...options
23682365
};

0 commit comments

Comments
 (0)