aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/requests.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-07 08:33:51 +0200
committerChocobozzz <me@florianbigard.com>2021-09-07 08:33:51 +0200
commitddd677e4fdef4544773f6f426b4853d494df615e (patch)
treefbfe8cba9d067e55e24ba8a0025de60ad815ff28 /server/helpers/requests.ts
parent02b286f89088e07cac7e7068e884d3be0fd0098b (diff)
downloadPeerTube-ddd677e4fdef4544773f6f426b4853d494df615e.tar.gz
PeerTube-ddd677e4fdef4544773f6f426b4853d494df615e.tar.zst
PeerTube-ddd677e4fdef4544773f6f426b4853d494df615e.zip
Remove unused timeout option
Diffstat (limited to 'server/helpers/requests.ts')
-rw-r--r--server/helpers/requests.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts
index e09e23086..535478017 100644
--- a/server/helpers/requests.ts
+++ b/server/helpers/requests.ts
@@ -26,7 +26,6 @@ type PeerTubeRequestOptions = {
26 key: string 26 key: string
27 headers: string[] 27 headers: string[]
28 } 28 }
29 timeout?: number
30 jsonResponse?: boolean 29 jsonResponse?: boolean
31} & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'> 30} & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'>
32 31
@@ -216,7 +215,6 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
216 dnsCache: true, 215 dnsCache: true,
217 json: options.json, 216 json: options.json,
218 searchParams: options.searchParams, 217 searchParams: options.searchParams,
219 timeout: options.timeout ?? REQUEST_TIMEOUT,
220 headers, 218 headers,
221 context 219 context
222 } 220 }