Remove unused timeout option

This commit is contained in:
Chocobozzz 2021-09-07 08:33:51 +02:00
parent 02b286f890
commit ddd677e4fd
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 2 deletions

View File

@ -26,7 +26,6 @@ type PeerTubeRequestOptions = {
key: string
headers: string[]
}
timeout?: number
jsonResponse?: boolean
} & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'>
@ -216,7 +215,6 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
dnsCache: true,
json: options.json,
searchParams: options.searchParams,
timeout: options.timeout ?? REQUEST_TIMEOUT,
headers,
context
}