Skip to content

Commit

Permalink
Merge pull request #11 from erictik:queue
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
zcpua authored Apr 29, 2023
2 parents e8d7d1a + 81abfcb commit 10a8cd2
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 10a8cd2

Please sign in to comment.