log total backed up keys during flush operation

This commit is contained in:
Bruno Windels 2022-02-01 12:30:45 +01:00
parent b29ecd339d
commit 00c5e747d2

View File

@ -127,6 +127,7 @@ export class KeyBackup {
const keysNeedingBackup = (await txn.inboundGroupSessions.getFirstNonBackedUpSessions(KEYS_PER_REQUEST)) const keysNeedingBackup = (await txn.inboundGroupSessions.getFirstNonBackedUpSessions(KEYS_PER_REQUEST))
.map(entry => new StoredRoomKey(entry)); .map(entry => new StoredRoomKey(entry));
if (keysNeedingBackup.length === 0) { if (keysNeedingBackup.length === 0) {
log.set("total", total);
return; return;
} }
const payload = await this.encodeKeysForBackup(keysNeedingBackup); const payload = await this.encodeKeysForBackup(keysNeedingBackup);