Unverified Commit 9e036bca authored by Dennis's avatar Dennis Committed by GitHub

Update memory.go

parent 0333e26b
......@@ -209,7 +209,11 @@ func (bc *MemoryCache) StartAndGC(config string) error {
// check expiration.
func (bc *MemoryCache) vacuum() {
if bc.Every < 1 {
bc.RLock()
every := bc.Every
bc.RUnlock()
if every < 1 {
return
}
for {
......
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