]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't retry failed transaction for refresh
authorChocobozzz <me@florianbigard.com>
Fri, 9 Apr 2021 14:29:38 +0000 (16:29 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 9 Apr 2021 14:29:38 +0000 (16:29 +0200)
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

index 9014791c0efda3ba682ce7f8d39da9cf5b35cd3c..506204674dbafad0f6bced6113d74b83a2e4ec85 100644 (file)
@@ -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)