Watch for bisq dump recursively.

This commit is contained in:
softsimon 2020-07-18 13:41:40 +07:00
parent 425f4152b6
commit 3df36cd3b8
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7

View file

@ -27,7 +27,7 @@ class Bisq {
this.loadBisqDumpFile(); this.loadBisqDumpFile();
let fsWait: NodeJS.Timeout | null = null; let fsWait: NodeJS.Timeout | null = null;
fs.watch(config.BSQ_BLOCKS_DATA_PATH, () => { fs.watch(config.BSQ_BLOCKS_DATA_PATH, { recursive: true }, () => {
if (fsWait) { if (fsWait) {
clearTimeout(fsWait); clearTimeout(fsWait);
} }