Skip to content

Commit b3fdd92

Browse files
authored
Merge pull request #137 from anyproto/GO-4489-fix-deleltion-log-error
GO-4489 deletionlog: increase lock time
2 parents f43f0e9 + d88dbce commit b3fdd92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deletelog/deletelog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (d *deleteLog) Run(ctx context.Context) (err error) {
6161
}
6262

6363
func (d *deleteLog) checkLog(ctx context.Context) (err error) {
64-
mu := d.redsync.NewMutex("_lock:deletion", redsync.WithExpiry(time.Minute*10))
64+
mu := d.redsync.NewMutex("_lock:deletion", redsync.WithExpiry(time.Hour))
6565
if err = mu.LockContext(ctx); err != nil {
6666
return
6767
}

0 commit comments

Comments
 (0)