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