From 12b64737a80e4f16bd280c97d46c8b5f3b06d9ae Mon Sep 17 00:00:00 2001 From: WongXX Date: Mon, 27 Jan 2025 17:10:40 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8E=BB=E6=8E=89=E6=B2=92=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=81=8E=E7=9A=84timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.ts | 1 - util.ts | 6 ------ 2 files changed, 7 deletions(-) delete mode 100644 util.ts diff --git a/index.ts b/index.ts index 0d86db3..8386eb9 100644 --- a/index.ts +++ b/index.ts @@ -2,7 +2,6 @@ import fs from 'fs' import got, {HTTPError, Options} from 'got' import YAML from 'yaml' -import {timeout} from './util.js' import {IrequestData} from './types.js' const path: string = YAML.parse(fs.readFileSync('../config.yml', 'utf-8')).path diff --git a/util.ts b/util.ts deleted file mode 100644 index b25095c..0000000 --- a/util.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function timeout(ms: number): Promise { - return new Promise((resolve, reject) => { - setTimeout(resolve, ms) - }) - } - \ No newline at end of file