modify
This commit is contained in:
@@ -72,7 +72,7 @@ class OnWorkerStart extends Callback
|
|||||||
Coroutine::sleep(1);
|
Coroutine::sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$server->stop();
|
$server->stop($workerId, true);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$this->addError($exception);
|
$this->addError($exception);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ class Snowflake
|
|||||||
public static function getMasterPid(): bool|string
|
public static function getMasterPid(): bool|string
|
||||||
{
|
{
|
||||||
$pid = Snowflake::app()->getSwoole()->setting['pid_file'];
|
$pid = Snowflake::app()->getSwoole()->setting['pid_file'];
|
||||||
|
|
||||||
return file_get_contents($pid);
|
return file_get_contents($pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user