aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-03 10:10:55 +0100
committerChocobozzz <me@florianbigard.com>2021-03-03 10:10:55 +0100
commitdcd75f786c42b4cc2049b17d535b3de3b7702fbc (patch)
treed2bb3339bf6e22b7585cd0a696c209c534d0cb2b /server/lib/activitypub
parent67bd004d843d29576f24c21437a33e1334ccb765 (diff)
downloadPeerTube-dcd75f786c42b4cc2049b17d535b3de3b7702fbc.tar.gz
PeerTube-dcd75f786c42b4cc2049b17d535b3de3b7702fbc.tar.zst
PeerTube-dcd75f786c42b4cc2049b17d535b3de3b7702fbc.zip
Rename request timeout
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/crawl.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/crawl.ts b/server/lib/activitypub/crawl.ts
index eeafdf4ba..1ed105bbe 100644
--- a/server/lib/activitypub/crawl.ts
+++ b/server/lib/activitypub/crawl.ts
@@ -1,4 +1,4 @@
1import { ACTIVITY_PUB, JOB_REQUEST_TIMEOUT, WEBSERVER } from '../../initializers/constants' 1import { ACTIVITY_PUB, REQUEST_TIMEOUT, WEBSERVER } from '../../initializers/constants'
2import { doRequest } from '../../helpers/requests' 2import { doRequest } from '../../helpers/requests'
3import { logger } from '../../helpers/logger' 3import { logger } from '../../helpers/logger'
4import * as Bluebird from 'bluebird' 4import * as Bluebird from 'bluebird'
@@ -16,7 +16,7 @@ async function crawlCollectionPage <T> (uri: string, handler: HandlerFunction<T>
16 uri, 16 uri,
17 json: true, 17 json: true,
18 activityPub: true, 18 activityPub: true,
19 timeout: JOB_REQUEST_TIMEOUT 19 timeout: REQUEST_TIMEOUT
20 } 20 }
21 21
22 const startDate = new Date() 22 const startDate = new Date()