1.新增游戏实时对局日志,方便排查问题
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace app\process;
|
||||
|
||||
use app\common\service\GameLiveService;
|
||||
use app\common\service\GameLiveStuckDiagnostic;
|
||||
use Workerman\Timer;
|
||||
|
||||
/**
|
||||
@@ -13,6 +14,7 @@ class GameLiveTicker
|
||||
public function onWorkerStart(): void
|
||||
{
|
||||
GameLiveService::recoverAbnormalPeriodOnStartup();
|
||||
GameLiveStuckDiagnostic::inspectAfterRecovery();
|
||||
|
||||
Timer::add(1, static function (): void {
|
||||
GameLiveService::publishSnapshot(null);
|
||||
|
||||
Reference in New Issue
Block a user