mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Rename request timeout
This commit is contained in:
parent
67bd004d84
commit
dcd75f786c
4 changed files with 13 additions and 13 deletions
|
@ -1,11 +1,11 @@
|
|||
import * as Bull from 'bull'
|
||||
import * as Bluebird from 'bluebird'
|
||||
import * as Bull from 'bull'
|
||||
import { ActivitypubHttpBroadcastPayload } from '@shared/models'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { doRequest } from '../../../helpers/requests'
|
||||
import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils'
|
||||
import { BROADCAST_CONCURRENCY, JOB_REQUEST_TIMEOUT } from '../../../initializers/constants'
|
||||
import { BROADCAST_CONCURRENCY, REQUEST_TIMEOUT } from '../../../initializers/constants'
|
||||
import { ActorFollowScoreCache } from '../../files-cache'
|
||||
import { ActivitypubHttpBroadcastPayload } from '@shared/models'
|
||||
import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils'
|
||||
|
||||
async function processActivityPubHttpBroadcast (job: Bull.Job) {
|
||||
logger.info('Processing ActivityPub broadcast in job %d.', job.id)
|
||||
|
@ -20,7 +20,7 @@ async function processActivityPubHttpBroadcast (job: Bull.Job) {
|
|||
uri: '',
|
||||
json: body,
|
||||
httpSignature: httpSignatureOptions,
|
||||
timeout: JOB_REQUEST_TIMEOUT,
|
||||
timeout: REQUEST_TIMEOUT,
|
||||
headers: buildGlobalHeaders(body)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue