mirror of https://github.com/ledisdb/ledisdb.git
Merge branch 'pr/122' into develop
This commit is contained in:
parent
f2cc5f5fd9
commit
bb01d4c246
|
@ -139,7 +139,7 @@ func (c *ttlChecker) setNextCheckTime(when int64, force bool) {
|
||||||
c.Lock()
|
c.Lock()
|
||||||
if force {
|
if force {
|
||||||
c.nc = when
|
c.nc = when
|
||||||
} else if !force && c.nc > when {
|
} else if c.nc > when {
|
||||||
c.nc = when
|
c.nc = when
|
||||||
}
|
}
|
||||||
c.Unlock()
|
c.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue