mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
大幅提升超时时间(这下应该够了吧?)
This commit is contained in:
parent
cf07849130
commit
efedfda9c6
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import fetch from 'node-fetch';
|
||||
|
||||
export async function checkLatency(url, timeout = 5000) {
|
||||
export async function checkLatency(url, timeout = 10000) {
|
||||
const controller = new AbortController()
|
||||
const { signal } = controller
|
||||
const timeoutId = setTimeout(() => controller.abort(), timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue