ci: fix benchmarks (#2953)

This commit is contained in:
ITOH
2023-04-02 21:06:55 +00:00
committed by GitHub
parent da74ea7e55
commit 0f41cd302e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { enableCachePlugin } from '../plugins/mod.ts.js'
const results = await memoryBenchmarks(() => const results = await memoryBenchmarks(() =>
enableCachePlugin( enableCachePlugin(
createBot({ createBot({
token: ' ', applicationId: 1n,
botId: 0n, botId: 0n,
}), }),
), ),
+1 -1
View File
@@ -21,7 +21,7 @@ await memoryBenchmark(
() => () =>
enableCachePlugin( enableCachePlugin(
createBot({ createBot({
token: ' ', applicationId: 1n,
events: {}, events: {},
}), }),
), ),
+1 -1
View File
@@ -1,7 +1,7 @@
import { createRestManager } from '@discordeno/rest' import { createRestManager } from '@discordeno/rest'
import { suite } from '../benchmarkSuite.js' import { suite } from '../benchmarkSuite.js'
const rest = createRestManager({ token: ' ' }) const rest = createRestManager({ applicationId: 1n })
suite.add(`rest.simplifyUrl`, () => { suite.add(`rest.simplifyUrl`, () => {
rest.simplifyUrl('/messages/555555555555555555', 'PUT') rest.simplifyUrl('/messages/555555555555555555', 'PUT')
@@ -15,7 +15,7 @@ const createGatewayManagerWithPort = (port: number) =>
maxConcurrency: 1, maxConcurrency: 1,
}, },
}, },
token: ' ', applicationId: 1n,
url: `ws://localhost:${port}`, url: `ws://localhost:${port}`,
intents: Intents.Guilds, intents: Intents.Guilds,
events: {}, events: {},