Remove unused timeout option

This commit is contained in:
Chocobozzz
2021-09-07 08:33:51 +02:00
parent 02b286f890
commit ddd677e4fd

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
}