aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-08 12:26:46 +0200
committerChocobozzz <me@florianbigard.com>2022-09-08 12:27:22 +0200
commit405c83f9af377a663a4c8e9ad025fd5c10496922 (patch)
tree88062f7d9e23bdf879358963975891387e388e2d /server/helpers
parentd800ec5f36fa8d57f29c577bcf797a79081342d5 (diff)
downloadPeerTube-405c83f9af377a663a4c8e9ad025fd5c10496922.tar.gz
PeerTube-405c83f9af377a663a4c8e9ad025fd5c10496922.tar.zst
PeerTube-405c83f9af377a663a4c8e9ad025fd5c10496922.zip
Use worker thread to send HTTP requests
Compute HTTP signature could be CPU intensive
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/requests.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts
index 0756beb16..1a3cc1b5b 100644
--- a/server/helpers/requests.ts
+++ b/server/helpers/requests.ts
@@ -192,6 +192,8 @@ async function findLatestRedirection (url: string, options: PeerTubeRequestOptio
192// --------------------------------------------------------------------------- 192// ---------------------------------------------------------------------------
193 193
194export { 194export {
195 PeerTubeRequestOptions,
196
195 doRequest, 197 doRequest,
196 doJSONRequest, 198 doJSONRequest,
197 doRequestAndSaveToFile, 199 doRequestAndSaveToFile,