You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
ElementR: Ensure Encryption order per room (#3973)
* add test for order bug * Ensure encryption order per room * Remove unneeded fake timers * review * put back log duration * fix wrong call * code review * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update spec/unit/rust-crypto/RoomEncryptor.spec.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update spec/unit/rust-crypto/RoomEncryptor.spec.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * fix link syntax * remove xxx comment * fix comment order * Improve comment * add log duration * fix comment * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update src/rust-crypto/RoomEncryptor.ts Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> --------- Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ import { Optional } from "matrix-events-sdk";
|
||||
import { IEvent, MatrixEvent } from "./models/event";
|
||||
import { M_TIMESTAMP } from "./@types/location";
|
||||
import { ReceiptType } from "./@types/read_receipts";
|
||||
import { Logger } from "./logger";
|
||||
import { BaseLogger } from "./logger";
|
||||
|
||||
const interns = new Map<string, string>();
|
||||
|
||||
@@ -395,7 +395,7 @@ export function sleep<T>(ms: number, value?: T): Promise<T> {
|
||||
* @param name - The name of the operation.
|
||||
* @param block - The block to execute.
|
||||
*/
|
||||
export async function logDuration<T>(logger: Logger, name: string, block: () => Promise<T>): Promise<T> {
|
||||
export async function logDuration<T>(logger: BaseLogger, name: string, block: () => Promise<T>): Promise<T> {
|
||||
const start = Date.now();
|
||||
try {
|
||||
return await block();
|
||||
|
||||
Reference in New Issue
Block a user