1
This commit is contained in:
parent
3e206fbcde
commit
f4a5b444c2
@ -19,6 +19,17 @@ class PullDbEvent extends BaseService {
|
||||
}
|
||||
PullDbEvent.#maxIdx = maxIdx;
|
||||
}
|
||||
async () => {
|
||||
while (true) {
|
||||
const {err, maxIdx} = await conn.getMaxIdx('');
|
||||
if (!err) {
|
||||
PullDbEvent.#maxIdx = maxIdx;
|
||||
await utils.sleep(500 + utils.randRange(500, 1500));
|
||||
} else {
|
||||
await utils.sleep(5000 + utils.randRange(500, 1500));
|
||||
}
|
||||
}
|
||||
}();
|
||||
}
|
||||
|
||||
async init(net, event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user