Remove unused timeout option
This commit is contained in:
parent
02b286f890
commit
ddd677e4fd
|
@ -26,7 +26,6 @@ type PeerTubeRequestOptions = {
|
||||||
key: string
|
key: string
|
||||||
headers: string[]
|
headers: string[]
|
||||||
}
|
}
|
||||||
timeout?: number
|
|
||||||
jsonResponse?: boolean
|
jsonResponse?: boolean
|
||||||
} & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'>
|
} & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'>
|
||||||
|
|
||||||
|
@ -216,7 +215,6 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
|
||||||
dnsCache: true,
|
dnsCache: true,
|
||||||
json: options.json,
|
json: options.json,
|
||||||
searchParams: options.searchParams,
|
searchParams: options.searchParams,
|
||||||
timeout: options.timeout ?? REQUEST_TIMEOUT,
|
|
||||||
headers,
|
headers,
|
||||||
context
|
context
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue