1
This commit is contained in:
parent
7da42fc7c8
commit
89fc7388a5
@ -219,9 +219,6 @@ class DbEventProcess extends BaseService {
|
|||||||
|
|
||||||
async process(row) {
|
async process(row) {
|
||||||
const logHead = this.getInstanceName() + ' process: ';
|
const logHead = this.getInstanceName() + ' process: ';
|
||||||
if (!this.eventHandle) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
const handle = eventsFactory.createEventHandle(this, this.conn, row);
|
const handle = eventsFactory.createEventHandle(this, this.conn, row);
|
||||||
@ -237,6 +234,10 @@ class DbEventProcess extends BaseService {
|
|||||||
await utils.sleep(5000 + utils.randRange(500, 1500));
|
await utils.sleep(5000 + utils.randRange(500, 1500));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const idx = BigInt(row['idx']);
|
||||||
|
if (idx > this.lastIdx) {
|
||||||
|
this.lastIdx = idx;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user