]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove unused timeout option
authorChocobozzz <me@florianbigard.com>
Tue, 7 Sep 2021 06:33:51 +0000 (08:33 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 7 Sep 2021 06:33:51 +0000 (08:33 +0200)
server/helpers/requests.ts

index e09e230863d25f6eef7da65803916a1a86f9a2c6..5354780170da2852f6287bbc6e23ebcdc8c5909b 100644 (file)
@@ -26,7 +26,6 @@ type PeerTubeRequestOptions = {
     key: string
     headers: string[]
   }
-  timeout?: number
   jsonResponse?: boolean
 } & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'>
 
@@ -216,7 +215,6 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
     dnsCache: true,
     json: options.json,
     searchParams: options.searchParams,
-    timeout: options.timeout ?? REQUEST_TIMEOUT,
     headers,
     context
   }