This commit is contained in:
as2252258@163.com
2021-04-09 03:26:50 +08:00
parent c25fe7e057
commit dd4263cc1e
+3
View File
@@ -77,7 +77,10 @@ class OnWorkerStart extends Callback
public function onWorker(Server $server, Annotation $annotation)
{
try {
$time = microtime(true);
$annotation->runtime(CONTROLLER_PATH);
$this->debug('load controller time .' . (microtime(true) - $time));
$annotation->runtime(APP_PATH, CONTROLLER_PATH);
Snowflake::setWorkerId($server->worker_pid);