mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 06:26:34 +08:00
使用KV存储实现指标统计
This commit is contained in:
@@ -199,7 +199,7 @@ func (this *Manager) loadDB() error {
|
||||
var sqlitePath = Tea.Root + "/data/agents.db"
|
||||
_, sqliteErr := os.Stat(sqlitePath)
|
||||
var db DB
|
||||
if sqliteErr == nil {
|
||||
if sqliteErr == nil || !teaconst.EnableKVCacheStore {
|
||||
db = NewSQLiteDB(sqlitePath)
|
||||
} else {
|
||||
db = NewKVDB()
|
||||
|
||||
Reference in New Issue
Block a user