mirror of https://github.com/Chocobozzz/PeerTube
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 finepull/3949/head
parent
21c917b38b
commit
78ec174cca
|
@ -539,7 +539,7 @@ async function refreshVideoIfNeeded (options: {
|
||||||
account: channelActor.VideoChannel.Account,
|
account: channelActor.VideoChannel.Account,
|
||||||
channel: channelActor.VideoChannel
|
channel: channelActor.VideoChannel
|
||||||
}
|
}
|
||||||
await retryTransactionWrapper(updateVideoFromAP, updateOptions)
|
await updateVideoFromAP(updateOptions)
|
||||||
await syncVideoExternalAttributes(video, videoObject, options.syncParam)
|
await syncVideoExternalAttributes(video, videoObject, options.syncParam)
|
||||||
|
|
||||||
ActorFollowScoreCache.Instance.addGoodServerId(video.VideoChannel.Actor.serverId)
|
ActorFollowScoreCache.Instance.addGoodServerId(video.VideoChannel.Actor.serverId)
|
||||||
|
|
Loading…
Reference in New Issue