diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-03 10:10:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-03 10:10:55 +0100 |
commit | dcd75f786c42b4cc2049b17d535b3de3b7702fbc (patch) | |
tree | d2bb3339bf6e22b7585cd0a696c209c534d0cb2b /server/lib/activitypub | |
parent | 67bd004d843d29576f24c21437a33e1334ccb765 (diff) | |
download | PeerTube-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.ts | 4 |
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 @@ | |||
1 | import { ACTIVITY_PUB, JOB_REQUEST_TIMEOUT, WEBSERVER } from '../../initializers/constants' | 1 | import { ACTIVITY_PUB, REQUEST_TIMEOUT, WEBSERVER } from '../../initializers/constants' |
2 | import { doRequest } from '../../helpers/requests' | 2 | import { doRequest } from '../../helpers/requests' |
3 | import { logger } from '../../helpers/logger' | 3 | import { logger } from '../../helpers/logger' |
4 | import * as Bluebird from 'bluebird' | 4 | import * 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() |