1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Rename request timeout

This commit is contained in:
Chocobozzz 2021-03-03 10:10:55 +01:00
parent 67bd004d84
commit dcd75f786c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 13 additions and 13 deletions

View file

@ -1,10 +1,10 @@
import * as Bull from 'bull'
import { ActivitypubHttpUnicastPayload } from '@shared/models'
import { logger } from '../../../helpers/logger'
import { doRequest } from '../../../helpers/requests'
import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils'
import { JOB_REQUEST_TIMEOUT } from '../../../initializers/constants'
import { REQUEST_TIMEOUT } from '../../../initializers/constants'
import { ActorFollowScoreCache } from '../../files-cache'
import { ActivitypubHttpUnicastPayload } from '@shared/models'
import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils'
async function processActivityPubHttpUnicast (job: Bull.Job) {
logger.info('Processing ActivityPub unicast in job %d.', job.id)
@ -20,7 +20,7 @@ async function processActivityPubHttpUnicast (job: Bull.Job) {
uri,
json: body,
httpSignature: httpSignatureOptions,
timeout: JOB_REQUEST_TIMEOUT,
timeout: REQUEST_TIMEOUT,
headers: buildGlobalHeaders(body)
}