mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix benchmarks
This commit is contained in:
parent
c98f788fec
commit
b69f20ccf4
|
|
@ -2,10 +2,10 @@
|
||||||
* Usage: TOKEN=your_token_here bun benchmark:timeline <request_count>
|
* Usage: TOKEN=your_token_here bun benchmark:timeline <request_count>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { getConfig } from "~classes/configmanager";
|
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
|
import { ConfigManager } from "config-manager";
|
||||||
|
|
||||||
const config = getConfig();
|
const config = await new ConfigManager({}).getConfig();
|
||||||
|
|
||||||
const token = process.env.TOKEN;
|
const token = process.env.TOKEN;
|
||||||
const requestCount = Number(process.argv[2]) || 100;
|
const requestCount = Number(process.argv[2]) || 100;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue