refactor: clean up unused config options

This commit is contained in:
Deluan
2020-03-17 15:16:50 -04:00
committed by Deluan Quintão
parent 68a49befc8
commit e02f3d3ec9
3 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ func getFinalCachedSize(r fscache.ReadAtCloser) int64 {
}
func NewTranscodingCache() (fscache.Cache, error) {
lru := fscache.NewLRUHaunter(0, conf.Server.MaxTranscodingCacheSize*1024*1024, 10*time.Minute)
lru := fscache.NewLRUHaunter(0, conf.Server.TranscodingCacheSize*1024*1024, 10*time.Minute)
h := fscache.NewLRUHaunterStrategy(lru)
cacheFolder := filepath.Join(conf.Server.DataFolder, consts.CacheDir)
fs, err := fscache.NewFs(cacheFolder, 0755)