This commit is contained in:
as2252258@163.com
2021-04-11 19:08:36 +08:00
parent 76fab90abb
commit 91de213fb0
+4 -3
View File
@@ -37,10 +37,11 @@ abstract class Process extends \Swoole\Process implements SProcess
$this->application = $application;
Snowflake::setProcessId($this->pid);
// $content = System::readFile(storage('runtime.php'));
$content = System::readFile(storage('runtime.php'));
// $annotation = Snowflake::app()->getAnnotation();
// $annotation->setLoader(unserialize($content));
$annotation = Snowflake::app()->getAnnotation();
$annotation->setLoader(unserialize($content));
$annotation->runtime(APP_PATH . 'app/Kafka');
}
/**