最后一次的count放到计数中

This commit is contained in:
liaoyulong
2025-12-04 12:23:36 +08:00
parent d6c3f542f3
commit 942630dc33

View File

@@ -605,6 +605,8 @@ func (s *sGameAct) Cache2SqlChan(ctx context.Context, addChan, updateChan chan *
}
err = tx.Commit()
addAllCount += addCount
updateAllCount += updateCount
// 仅在所有通道处理完毕后打印最终计数(移除中间冗余日志)
g.Log().Debugf(ctx, "运行结束act当前写入数据库: %v 条", addAllCount)
g.Log().Debugf(ctx, "运行结束act当前更新数据库: %v 条", updateAllCount)