Skip to content

Commit

Permalink
Merge pull request #137 from anyproto/GO-4489-fix-deleltion-log-error
Browse files Browse the repository at this point in the history
GO-4489 deletionlog: increase lock time
  • Loading branch information
cheggaaa authored Nov 13, 2024
2 parents f43f0e9 + d88dbce commit b3fdd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deletelog/deletelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b3fdd92

Please sign in to comment.