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 {
|
||||
method: options.method,
|
||||
dnsCache: true,
|
||||
json: options.json,
|
||||
searchParams: options.searchParams,
|
||||
timeout: options.timeout ?? REQUEST_TIMEOUT,
|
||||
|
|
Loading…
Reference in New Issue