watch update
This commit is contained in:
9
watch.js
9
watch.js
@@ -1,11 +1,12 @@
|
||||
const neteaseMusic = require('./netease_music/index');
|
||||
|
||||
let keepWatching = false;
|
||||
let keepWatching = true;
|
||||
if (keepWatching) {
|
||||
global.useMysqlPool = true;
|
||||
global.connectionLimit = 1;
|
||||
setInterval(neteaseMusic.watch, 10 * 1000);
|
||||
} else {
|
||||
global.useMysqlPool = false;
|
||||
}
|
||||
|
||||
const neteaseMusic = require('./netease_music/index');
|
||||
neteaseMusic.watch();
|
||||
if (keepWatching)
|
||||
setInterval(neteaseMusic.watch, 15 * 1000);
|
Reference in New Issue
Block a user