优化代码

This commit is contained in:
GoEdgeLab
2024-04-15 19:37:38 +08:00
parent 8ac6a421c0
commit 4f66f55152
8 changed files with 17 additions and 46 deletions

View File

@@ -664,7 +664,7 @@ func TestFileStorage_ScanGarbageCaches(t *testing.T) {
func BenchmarkFileStorage_Read(b *testing.B) {
runtime.GOMAXPROCS(1)
_ = utils.SetRLimit(1024 * 1024)
_ = utils.SetRLimit(1 << 20)
var storage = NewFileStorage(&serverconfigs.HTTPCachePolicy{
Id: 1,