改名
This commit is contained in:
@@ -64,7 +64,7 @@ class OnWorkerStart extends Callback
|
|||||||
*/
|
*/
|
||||||
public function onTask(Server $server, Annotation $annotation)
|
public function onTask(Server $server, Annotation $annotation)
|
||||||
{
|
{
|
||||||
$annotation->runtime(MODEL_PATH);
|
$annotation->runtime(directory('app'));
|
||||||
|
|
||||||
putenv('environmental=' . Snowflake::TASK);
|
putenv('environmental=' . Snowflake::TASK);
|
||||||
|
|
||||||
@@ -85,10 +85,7 @@ class OnWorkerStart extends Callback
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$time = microtime(true);
|
$time = microtime(true);
|
||||||
$annotation->runtime(CONTROLLER_PATH);
|
$annotation->runtime(directory('app'));
|
||||||
$this->debug('load controller time .' . (microtime(true) - $time));
|
|
||||||
|
|
||||||
$annotation->runtime(directory('app'), CONTROLLER_PATH);
|
|
||||||
|
|
||||||
name($server->worker_pid, 'Worker#' . $server->worker_id);
|
name($server->worker_pid, 'Worker#' . $server->worker_id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user