This commit is contained in:
xl
2023-07-06 17:57:10 +08:00
parent c7dd16b4c9
commit d09cd983d7
+2 -2
View File
@@ -35,7 +35,7 @@ class HotReload extends BaseProcess
*/
public function getName(): string
{
return 'hot.load'; // TODO: Change the autogenerated stub
return '[' . \config('id', 'system-service') . '].hot.load'; // TODO: Change the autogenerated stub
}
@@ -92,7 +92,7 @@ class HotReload extends BaseProcess
if (!is_dir($dir)) {
continue;
}
$this->watch($init, rtrim($dir,'/'));
$this->watch($init, rtrim($dir, '/'));
}
Event::add($init, fn() => $this->check($init));
Event::cycle(function () use ($init) {