modify
This commit is contained in:
@@ -51,13 +51,11 @@ class OnWorkerStart extends Callback
|
|||||||
$this->onTask($server, $worker_id);
|
$this->onTask($server, $worker_id);
|
||||||
} else {
|
} else {
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
|
|
||||||
$annotation->runtime(CONTROLLER_PATH);
|
$annotation->runtime(CONTROLLER_PATH);
|
||||||
$this->error('use time ' . (microtime(true) - $start));
|
$this->error('use time ' . (microtime(true) - $start));
|
||||||
Coroutine\go(function () use ($annotation) {
|
Coroutine\go(function () use ($annotation) {
|
||||||
$annotation->runtime(APP_PATH, CONTROLLER_PATH);
|
$annotation->runtime(APP_PATH, CONTROLLER_PATH);
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->onWorker($server, $worker_id);
|
$this->onWorker($server, $worker_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user