This commit is contained in:
2021-03-29 11:32:01 +08:00
parent b70f705450
commit fe6c754857
6 changed files with 565 additions and 572 deletions
+4 -4
View File
@@ -25,10 +25,10 @@ class OnStart extends Callback
public function onHandler(Server $server)
{
// Snowflake::setProcessId($server->master_pid);
// if (Snowflake::getPlatform()->isLinux()) {
// name(Config::get('id', false, 'system:') . ' master.');
// }
// fire(Event::SERVER_EVENT_START, [$server]);
if (Snowflake::getPlatform()->isLinux()) {
name($server->master_pid);
}
fire(Event::SERVER_EVENT_START, [$server]);
}
}