This commit is contained in:
as2252258@163.com
2021-04-11 19:09:46 +08:00
parent 91de213fb0
commit d24558233e
-6
View File
@@ -36,12 +36,6 @@ abstract class Process extends \Swoole\Process implements SProcess
parent::__construct([$this, '_load'], false, 1, $enable_coroutine);
$this->application = $application;
Snowflake::setProcessId($this->pid);
$content = System::readFile(storage('runtime.php'));
$annotation = Snowflake::app()->getAnnotation();
$annotation->setLoader(unserialize($content));
$annotation->runtime(APP_PATH . 'app/Kafka');
}
/**