Skip to content

Commit def7593

Browse files
author
Leon Ding
authored
fix: inner error bug in the delete expired key method. (#322)
1 parent d4fdcd4 commit def7593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,6 @@ func (db *DB) DeleteExpiredKeys(timeout time.Duration) error {
714714
case <-ctx.Done():
715715
return innerErr
716716
case <-done:
717-
return nil
717+
return innerErr
718718
}
719719
}

0 commit comments

Comments
 (0)