Try to abstract the main part.
This commit is contained in:
1 parent
14b6a74666
commit
2732b14eae
14 files changed
+130
-105
No files matched your search
Vendored
+1
-1
@@ -197,7 +197,7 @@ func (table *Table) checkExpire() {
|
||||
table.cleanupInterval = smallestDuration
|
||||
if smallestDuration > 0 {
|
||||
table.cleanupTimer = time.AfterFunc(smallestDuration, func() {
|
||||
go util.SafeMethod(table.checkExpire)
|
||||
go util.RunWithRecovery(table.checkExpire)
|
||||
})
|
||||
}
|
||||
table.Unlock()
|
||||
|
||||
Reference in new issue
Block a user