This commit is contained in:
2021-04-09 10:32:36 +08:00
parent 0db557e8fe
commit dd4a9af3a9
+1 -3
View File
@@ -31,9 +31,7 @@ class OnWorkerStart extends Callback
putenv('state=start');
putenv('worker=' . $worker_id);
$open = fopen(storage('runtime.php'),'r');
$content = System::fread($open);
fclose($open);
$content = System::readFile(storage('runtime.php'));
$annotation = Snowflake::app()->getAnnotation();
$annotation->setLoader(unserialize($content));