From 81abfcb76009d9d3d81a9d87bbafa77a3f839a10 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 29 Apr 2023 18:50:00 +0800 Subject: [PATCH] fix --- src/midjourney.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/midjourney.ts b/src/midjourney.ts index 5d51991..bb1fd42 100644 --- a/src/midjourney.ts +++ b/src/midjourney.ts @@ -45,7 +45,6 @@ export class Midjourney extends MidjourneyMessage { callback?: (result: number) => void ) { const headers = { authorization: this.SalaiToken }; - const t0 = performance.now(); try { const response = await axios.post( "https://discord.com/api/v9/interactions", @@ -54,8 +53,6 @@ export class Midjourney extends MidjourneyMessage { headers, } ); - const t1 = performance.now(); - this.log(`Execution time: ${t1 - t0} milliseconds.`); callback && callback(response.status); //discord api rate limit await sleep(950);