改名
This commit is contained in:
@@ -90,9 +90,8 @@ class OnWorkerStart extends Callback
|
|||||||
name($server->worker_pid, 'Worker#' . $server->worker_id);
|
name($server->worker_pid, 'Worker#' . $server->worker_id);
|
||||||
|
|
||||||
$time = microtime(true);
|
$time = microtime(true);
|
||||||
$annotation->runtime(CONTROLLER_PATH);
|
$annotation->runtime(directory('app'));
|
||||||
$this->debug('use time.' . microtime(true) - $time);
|
$this->debug('use time.' . microtime(true) - $time);
|
||||||
$annotation->runtime(directory('app'), CONTROLLER_PATH);
|
|
||||||
|
|
||||||
Snowflake::setWorkerId($server->worker_pid);
|
Snowflake::setWorkerId($server->worker_pid);
|
||||||
putenv('environmental=' . Snowflake::WORKER);
|
putenv('environmental=' . Snowflake::WORKER);
|
||||||
|
|||||||
Reference in New Issue
Block a user