We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39f90d commit c2dc0e2Copy full SHA for c2dc0e2
src/api.js
@@ -304,10 +304,7 @@ export class Api {
304
const roomName = computeRedisRoomStreamName(room, docid, this.prefix)
305
const redisLastId = await this.getRedisLastId(room, docid)
306
const lastId = number.parseInt(redisLastId.split('-')[0])
307
- await this.redis.multi()
308
- .xTrim(roomName, 'MINID', lastId - this.redisMinMessageLifetime)
309
- .xDelIfEmpty(roomName)
310
- .exec()
+ await this.redis.xTrim(roomName, 'MINID', lastId - this.redisMinMessageLifetime)
311
}
312
313
/**
0 commit comments