优化文件缓存

This commit is contained in:
GoEdgeLab
2021-06-14 19:55:06 +08:00
parent 171d6632b7
commit af70c6d294
3 changed files with 10 additions and 12 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
"github.com/TeaOSLab/EdgeNode/internal/utils"
"github.com/cespare/xxhash"
"runtime"
"strconv"
"sync"
"sync/atomic"
@@ -217,8 +216,6 @@ func (this *MemoryStorage) Stop() {
this.locker.Unlock()
runtime.GC()
remotelogs.Println("CACHE", "close memory storage '"+strconv.FormatInt(this.policy.Id, 10)+"'")
}