From 254d3579f5338f5fd775c17d15cdfc37078bcfb4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jul 2021 09:47:51 +0200 Subject: Use an object to represent a server --- scripts/benchmark.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index 1d980063b..071c4dea7 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts @@ -1,12 +1,12 @@ import * as autocannon from 'autocannon' import { writeJson } from 'fs-extra' -import { flushAndRunServer, killallServers, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils' +import { createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/extra-utils' import { Video, VideoPrivacy } from '@shared/models' import { registerTSPaths } from '../server/helpers/register-ts-paths' registerTSPaths() -let server: ServerInfo +let server: PeerTubeServer let video: Video let threadId: number @@ -188,7 +188,7 @@ function runBenchmark (options: { } async function prepare () { - server = await flushAndRunServer(1, { + server = await createSingleServer(1, { rates_limit: { api: { max: 5_000_000 -- cgit v1.2.3