mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-04 14:36:34 +08:00
优化代码
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/events"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/utils"
|
||||
memutils "github.com/TeaOSLab/EdgeNode/internal/utils/mem"
|
||||
"github.com/cockroachdb/pebble"
|
||||
"github.com/iwind/TeaGo/Tea"
|
||||
"io"
|
||||
@@ -90,7 +90,7 @@ func (this *Store) Open() error {
|
||||
Logger: NewLogger(),
|
||||
}
|
||||
|
||||
var memoryMB = utils.SystemMemoryGB() * 1
|
||||
var memoryMB = memutils.SystemMemoryGB() * 1
|
||||
if memoryMB > 256 {
|
||||
memoryMB = 256
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user