This commit is contained in:
2022-09-23 18:55:46 +08:00
parent c190c749f4
commit c01dc5f41a
14 changed files with 239 additions and 331 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class Consul extends Component
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function deregister()
public function deregister(): void
{
if (env('environmental') != Kiri::WORKER && env('environmental_workerId') != 0) {
return;