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:
parent
3d470a530c
commit
7500d6c900
5 changed files with 12 additions and 12 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue