Fix lint and format code in client/cache dir

This commit is contained in:
loyalsoldier
2021-06-06 20:38:02 +08:00
parent ca328208cc
commit a87f8ec82a
9 changed files with 23 additions and 28 deletions

View File

@@ -67,7 +67,6 @@ func NewFileCache() Cache {
// StartAndGC starts gc for file cache.
// config must be in the format {CachePath:"/cache","FileSuffix":".bin","DirectoryLevel":"2","EmbedExpiry":"0"}
func (fc *FileCache) StartAndGC(config string) error {
cfg := make(map[string]string)
err := json.Unmarshal([]byte(config), &cfg)
if err != nil {