From d88dbce5e761562b6b5ef2b42e1c1faa6d1106ce Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Wed, 13 Nov 2024 16:00:56 +0100 Subject: [PATCH] deletionlog: increase lock time --- deletelog/deletelog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deletelog/deletelog.go b/deletelog/deletelog.go index ce091d2..c6ee8ac 100644 --- a/deletelog/deletelog.go +++ b/deletelog/deletelog.go @@ -61,7 +61,7 @@ func (d *deleteLog) Run(ctx context.Context) (err error) { } func (d *deleteLog) checkLog(ctx context.Context) (err error) { - mu := d.redsync.NewMutex("_lock:deletion", redsync.WithExpiry(time.Minute*10)) + mu := d.redsync.NewMutex("_lock:deletion", redsync.WithExpiry(time.Hour)) if err = mu.LockContext(ctx); err != nil { return }