This commit is contained in:
2021-03-02 10:41:17 +08:00
parent 83b6542f6f
commit 11d2350641
-1
View File
@@ -73,7 +73,6 @@ class OnWorkerStart extends Callback
public function onWorker(Server $server, int $worker_id) public function onWorker(Server $server, int $worker_id)
{ {
Snowflake::setWorkerId($server->worker_pid); Snowflake::setWorkerId($server->worker_pid);
putenv('environmental=' . Snowflake::WORKER); putenv('environmental=' . Snowflake::WORKER);
try { try {
fire(Event::SERVER_WORKER_START, [$worker_id]); fire(Event::SERVER_WORKER_START, [$worker_id]);