Commit e010ac37 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fixes for weekly.2011-12-14

parent 93b03587
...@@ -48,7 +48,7 @@ func (me *DirCache) setMap(newMap map[string]bool) { ...@@ -48,7 +48,7 @@ func (me *DirCache) setMap(newMap map[string]bool) {
me.names = newMap me.names = newMap
me.updateRunning = false me.updateRunning = false
_ = time.AfterFunc(int64(me.ttl), _ = time.AfterFunc(me.ttl,
func() { me.DropCache() }) func() { me.DropCache() })
} }
......
...@@ -102,7 +102,7 @@ func (me *TimedCache) RecurringPurge() { ...@@ -102,7 +102,7 @@ func (me *TimedCache) RecurringPurge() {
} }
me.Purge() me.Purge()
me.PurgeTimer = time.AfterFunc(int64(me.ttl*5), me.PurgeTimer = time.AfterFunc(me.ttl*5,
func() { me.RecurringPurge() }) func() { me.RecurringPurge() })
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment