This commit is contained in:
2020-09-07 16:08:17 +08:00
parent 4a11a0e813
commit 5cbf792474
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class OnWorkerStart extends Callback
*/
public function onHandler(Server $server, $worker_id)
{
Snowflake::setProcessId($server->worker_pid);
Snowflake::setWorkerId($server->worker_pid);
$get_name = $this->get_process_name($server, $worker_id);
if (!empty($get_name) && !Snowflake::isMac()) {