From 34a812d45ff2ff9123a19f03336c6b45dce850c2 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Tue, 7 Aug 2018 12:08:15 +0800 Subject: [PATCH] typo fixed #3260 --- cache/memory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/memory.go b/cache/memory.go index 57e868cf..4623f7d9 100644 --- a/cache/memory.go +++ b/cache/memory.go @@ -203,12 +203,12 @@ func (bc *MemoryCache) StartAndGC(config string) error { dur := time.Duration(cf["interval"]) * time.Second bc.Every = cf["interval"] bc.dur = dur - go bc.vaccuum() + go bc.vacuum() return nil } // check expiration. -func (bc *MemoryCache) vaccuum() { +func (bc *MemoryCache) vacuum() { if bc.Every < 1 { return }