This commit is contained in:
as2252258@163.com
2021-05-04 03:57:26 +08:00
parent 17393bb4a4
commit 9df9c52ce9
+2 -1
View File
@@ -12,6 +12,7 @@ use RdKafka\KafkaConsumer;
use RdKafka\TopicConf;
use Snowflake\Abstracts\Config;
use Snowflake\Exception\ConfigException;
use Snowflake\Runtime;
use Snowflake\Snowflake;
use Swoole\Coroutine\Channel;
use Swoole\Coroutine\System;
@@ -56,7 +57,7 @@ class Kafka extends \Snowflake\Process\Process
*/
public function before(Process $process): void
{
$content = System::readFile(storage('runtime.php'));
$content = System::readFile(storage(Runtime::CACHE_NAME));
$annotation = Snowflake::app()->getAnnotation();
$annotation->setLoader(unserialize($content));