Commit 439a79ad authored by nanahira's avatar nanahira

fix

parent 5e319c55
......@@ -200,7 +200,7 @@ export class RedisDriver extends BaseDriver {
async queueAck(key: string, value: Buffer): Promise<void> {
if (this.quitted) return;
const backupKey = this.getQueueBackupKey(key);
await this.pool.use((r) => r.redis.lrem(backupKey, 0, value));
await this.pool.use((r) => r.redis.lrem(backupKey, 1, value));
}
async queueResume(
......@@ -212,7 +212,7 @@ export class RedisDriver extends BaseDriver {
const _key = this.getQueueKey(key);
const backupKey = this.getQueueBackupKey(key);
await this.pool.use(async (r) => {
if (!(await r.redis.lrem(backupKey, 0, value))) return;
if (!(await r.redis.lrem(backupKey, 1, value))) return;
if (prior) {
await r.redis.lpush(_key, value);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment