mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 11:28:08 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -19,7 +19,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
|
||||
const [first, second] = contacts as [PrimaryDevice, PrimaryDevice];
|
||||
|
||||
const messages = new Array<Buffer>();
|
||||
const messages = new Array<Buffer<ArrayBuffer>>();
|
||||
debug('encrypting');
|
||||
// Send messages from just two contacts
|
||||
for (const contact of [second, first]) {
|
||||
|
||||
@@ -49,7 +49,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
const { server, desktop } = bootstrap;
|
||||
const [first] = members as [PrimaryDevice];
|
||||
|
||||
const messages = new Array<Buffer>();
|
||||
const messages = new Array<Buffer<ArrayBuffer>>();
|
||||
debug('encrypting');
|
||||
// Fill left pane
|
||||
for (const contact of members.slice(0, CONVERSATION_SIZE).reverse()) {
|
||||
@@ -190,7 +190,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
runId,
|
||||
delay,
|
||||
}: {
|
||||
receipts: Array<Buffer>;
|
||||
receipts: Array<Buffer<ArrayBuffer>>;
|
||||
batchSize: number;
|
||||
nextBatchSize: number;
|
||||
runId: number;
|
||||
@@ -216,7 +216,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
}
|
||||
}
|
||||
|
||||
let receiptsFromPreviousMessage: Array<Buffer> = [];
|
||||
let receiptsFromPreviousMessage: Array<Buffer<ArrayBuffer>> = [];
|
||||
for (let runId = 0; runId < RUN_COUNT + DISCARD_COUNT; runId += 1) {
|
||||
debug(`sending previous ${receiptsFromPreviousMessage.length} receipts`);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ Bootstrap.benchmark(async (bootstrap: Bootstrap): Promise<void> => {
|
||||
|
||||
const [first] = contacts as [PrimaryDevice];
|
||||
|
||||
const messages = new Array<Buffer>();
|
||||
const messages = new Array<Buffer<ArrayBuffer>>();
|
||||
debug('encrypting');
|
||||
// Note: make it so that we receive the latest message from the first
|
||||
// contact.
|
||||
|
||||
@@ -21,7 +21,7 @@ Bootstrap.regressionBenchmark(
|
||||
const { server, contacts, phone, desktop } = bootstrap;
|
||||
|
||||
// Generate messages
|
||||
const messagePromises = new Array<Promise<Buffer>>();
|
||||
const messagePromises = new Array<Promise<Buffer<ArrayBuffer>>>();
|
||||
debug('started generating messages');
|
||||
|
||||
for (let i = 0; i < messageCount; i += 1) {
|
||||
|
||||
Reference in New Issue
Block a user