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