diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-16 14:40:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-16 14:40:34 +0100 |
commit | b1dbb9fefc870a90b25f5c0153589f45c9e75e3e (patch) | |
tree | b48b9bb27bca807099e0a4b01f1e61dcfa4dfcca /server/lib/job-queue/handlers | |
parent | e57a840ede1f0eadec209e58401008f232249300 (diff) | |
parent | f240fb4bea61484854cecbe711ac20d77c31915d (diff) | |
download | PeerTube-b1dbb9fefc870a90b25f5c0153589f45c9e75e3e.tar.gz PeerTube-b1dbb9fefc870a90b25f5c0153589f45c9e75e3e.tar.zst PeerTube-b1dbb9fefc870a90b25f5c0153589f45c9e75e3e.zip |
Merge branch 'release/4.3.0' into develop
Diffstat (limited to 'server/lib/job-queue/handlers')
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-broadcast.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-http-broadcast.ts b/server/lib/job-queue/handlers/activitypub-http-broadcast.ts index 733c1378a..57ecf0acc 100644 --- a/server/lib/job-queue/handlers/activitypub-http-broadcast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-broadcast.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Job } from 'bullmq' | 1 | import { Job } from 'bullmq' |
2 | import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from '@server/lib/activitypub/send' | 2 | import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from '@server/lib/activitypub/send' |
3 | import { ActorFollowHealthCache } from '@server/lib/actor-follow-health-cache' | 3 | import { ActorFollowHealthCache } from '@server/lib/actor-follow-health-cache' |
4 | import { sequentialHTTPBroadcastFromWorker } from '@server/lib/worker/parent-process' | 4 | import { parallelHTTPBroadcastFromWorker, sequentialHTTPBroadcastFromWorker } from '@server/lib/worker/parent-process' |
5 | import { ActivitypubHttpBroadcastPayload } from '@shared/models' | 5 | import { ActivitypubHttpBroadcastPayload } from '@shared/models' |
6 | import { logger } from '../../../helpers/logger' | 6 | import { logger } from '../../../helpers/logger' |
7 | 7 | ||
@@ -22,7 +22,7 @@ async function processActivityPubParallelHttpBroadcast (job: Job<ActivitypubHttp | |||
22 | 22 | ||
23 | const requestOptions = await buildRequestOptions(job.data) | 23 | const requestOptions = await buildRequestOptions(job.data) |
24 | 24 | ||
25 | const { badUrls, goodUrls } = await sequentialHTTPBroadcastFromWorker({ uris: job.data.uris, requestOptions }) | 25 | const { badUrls, goodUrls } = await parallelHTTPBroadcastFromWorker({ uris: job.data.uris, requestOptions }) |
26 | 26 | ||
27 | return ActorFollowHealthCache.Instance.updateActorFollowsHealth(goodUrls, badUrls) | 27 | return ActorFollowHealthCache.Instance.updateActorFollowsHealth(goodUrls, badUrls) |
28 | } | 28 | } |