This commit is contained in:
2021-04-19 15:20:40 +08:00
parent 83cf62cbba
commit 38425b4d7e
3 changed files with 4 additions and 5 deletions
+2 -1
View File
@@ -90,8 +90,9 @@ class OnWorkerStart extends Callback
name($server->worker_pid, 'Worker#' . $server->worker_id);
$time = microtime(true);
$annotation->runtime(directory('app'));
$annotation->runtime(CONTROLLER_PATH);
$this->debug('use time.' . microtime(true) - $time);
$annotation->runtime(directory('app'), CONTROLLER_PATH);
Snowflake::setWorkerId($server->worker_pid);
putenv('environmental=' . Snowflake::WORKER);