1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Use a global request timeout

This commit is contained in:
Chocobozzz 2021-06-14 18:06:58 +02:00
parent 3d470a530c
commit 7500d6c900
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,6 @@ import * as Bull from 'bull'
import { ActivitypubHttpUnicastPayload } from '@shared/models'
import { logger } from '../../../helpers/logger'
import { doRequest } from '../../../helpers/requests'
import { REQUEST_TIMEOUT } from '../../../initializers/constants'
import { ActorFollowScoreCache } from '../../files-cache'
import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils'
@ -19,7 +18,6 @@ async function processActivityPubHttpUnicast (job: Bull.Job) {
method: 'POST' as 'POST',
json: body,
httpSignature: httpSignatureOptions,
timeout: REQUEST_TIMEOUT,
headers: buildGlobalHeaders(body)
}