This commit is contained in:
2021-04-19 15:18:41 +08:00
parent 73c71f4bca
commit ee8cb7d06b
+1 -2
View File
@@ -90,9 +90,8 @@ class OnWorkerStart extends Callback
name($server->worker_pid, 'Worker#' . $server->worker_id);
$time = microtime(true);
$annotation->runtime(CONTROLLER_PATH);
$annotation->runtime(directory('app'));
$this->debug('use time.' . microtime(true) - $time);
$annotation->runtime(directory('app'), CONTROLLER_PATH);
Snowflake::setWorkerId($server->worker_pid);
putenv('environmental=' . Snowflake::WORKER);