优化代码

This commit is contained in:
GoEdgeLab
2024-03-28 17:17:34 +08:00
parent e242502948
commit 04bff814d9
27 changed files with 52 additions and 63 deletions

View File

@@ -5,7 +5,7 @@ package compressions
import (
"compress/gzip"
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
"github.com/TeaOSLab/EdgeNode/internal/utils"
memutils "github.com/TeaOSLab/EdgeNode/internal/utils/mem"
"io"
)
@@ -16,7 +16,7 @@ func init() {
return
}
var maxSize = utils.SystemMemoryGB() * 256
var maxSize = memutils.SystemMemoryGB() * 256
if maxSize == 0 {
maxSize = 256
}