From 78ec174cca0f03a0647b0d39c8d91082f63d98db Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Apr 2021 16:29:38 +0200 Subject: Don't retry failed transaction for refresh It's just a refresh and could lead to some issues in our tests. If there is a transaction conflict, it means that the same video is already beeing updated so aborting should be fine --- server/lib/activitypub/videos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib') diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 9014791c0..506204674 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -539,7 +539,7 @@ async function refreshVideoIfNeeded (options: { account: channelActor.VideoChannel.Account, channel: channelActor.VideoChannel } - await retryTransactionWrapper(updateVideoFromAP, updateOptions) + await updateVideoFromAP(updateOptions) await syncVideoExternalAttributes(video, videoObject, options.syncParam) ActorFollowScoreCache.Instance.addGoodServerId(video.VideoChannel.Actor.serverId) -- cgit v1.2.3