logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 46ab97d72145a122cc0e0ada3cd9f0af5449bdf3
parent bdd63d2a3a5fe76f8a8ac1f71cb8698be85bfef4
Author: tusooa <tusooa@kazv.moe>
Date:   Fri, 16 Dec 2022 14:13:46 -0500

Simplify backup update clause

Diffstat:

Mlib/pleroma/user/backup.ex7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/pleroma/user/backup.ex b/lib/pleroma/user/backup.ex @@ -160,11 +160,8 @@ defmodule Pleroma.User.Backup do {:progress, new_processed} -> total_processed = current_processed + new_processed - with {:ok, updated_backup} <- set_state(backup, :running, total_processed) do - wait_backup(updated_backup, total_processed) - else - _ -> wait_backup(backup, total_processed) - end + set_state(backup, :running, total_processed) + wait_backup(backup, total_processed) :completed -> {:ok, get(backup.id)}