Skip to content

Commit

Permalink
log total backed up keys during flush operation
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Feb 1, 2022
1 parent b29ecd3 commit 00c5e74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/matrix/e2ee/megolm/keybackup/KeyBackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class KeyBackup {
const keysNeedingBackup = (await txn.inboundGroupSessions.getFirstNonBackedUpSessions(KEYS_PER_REQUEST))
.map(entry => new StoredRoomKey(entry));
if (keysNeedingBackup.length === 0) {
log.set("total", total);
return;
}
const payload = await this.encodeKeysForBackup(keysNeedingBackup);
Expand Down

0 comments on commit 00c5e74

Please sign in to comment.