增加部分数据清理周期设置

This commit is contained in:
GoEdgeLab
2023-07-01 17:54:40 +08:00
parent fadd61a260
commit 9cf7e6c564
13 changed files with 219 additions and 36 deletions

View File

@@ -52,7 +52,7 @@ func (this *ServerAccessLogCleaner) Loop() error {
if len(configJSON) == 0 {
return nil
}
var config = &systemconfigs.DatabaseConfig{}
var config = systemconfigs.NewDatabaseConfig()
err = json.Unmarshal(configJSON, config)
if err != nil {
return err