Use dns cache for requests
Prevent blocking issues in uv thread pool
This commit is contained in:
parent
787409e64a
commit
bbb3be686a
|
@ -185,6 +185,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
method: options.method,
|
method: options.method,
|
||||||
|
dnsCache: true,
|
||||||
json: options.json,
|
json: options.json,
|
||||||
searchParams: options.searchParams,
|
searchParams: options.searchParams,
|
||||||
timeout: options.timeout ?? REQUEST_TIMEOUT,
|
timeout: options.timeout ?? REQUEST_TIMEOUT,
|
||||||
|
|
Loading…
Reference in New Issue