Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Apr 29, 2023
1 parent 1f19272 commit 81abfcb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/midjourney.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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);
Expand Down

0 comments on commit 81abfcb

Please sign in to comment.