改名
This commit is contained in:
@@ -35,11 +35,12 @@ class OnWorkerStart extends Callback
|
||||
swoole_set_process_name($get_name);
|
||||
}
|
||||
|
||||
putenv('workerId=' . $worker_id);
|
||||
if ($worker_id >= $server->setting['worker_num']) {
|
||||
fire(Event::SERVER_TASK_START);
|
||||
putenv('workerId=Task.' . $worker_id);
|
||||
return;
|
||||
}
|
||||
putenv('workerId=Worker.' . $worker_id);
|
||||
Snowflake::setWorkerId($server->worker_pid);
|
||||
$this->setWorkerAction($worker_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user