Use dns cache for requests
Prevent blocking issues in uv thread pool
This commit is contained in:
parent
787409e64a
commit
bbb3be686a
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue