优化持久化因为活动太多造成的速度太慢

This commit is contained in:
ayflying
2025-09-02 16:51:41 +08:00
parent b052754a30
commit c12c49477c
3 changed files with 211 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ func Boot() (err error) {
service.SystemCron().AddCronV2(v1.CronType_HOUR, func(context.Context) error {
go func() {
err = service.GameKv().SavesV1()
err = service.GameAct().Saves()
err = service.GameAct().SavesV2()
if err != nil {
g.Log().Error(gctx.New(), err)
}