This commit is contained in:
2021-03-01 16:46:10 +08:00
parent b1eadf279e
commit 13ce5d980b
+5 -3
View File
@@ -6,8 +6,10 @@ namespace Snowflake\Process;
use Exception;
use JetBrains\PhpStorm\Pure;
use Snowflake\Application;
use Snowflake\Event;
use Snowflake\Exception\ComponentException;
use Snowflake\Snowflake;
/**
@@ -37,7 +39,7 @@ abstract class Process extends \Swoole\Process implements SProcess
/**
* @param Process $process
* @throws \Snowflake\Exception\ComponentException
* @throws ComponentException
*/
public function _load(Process $process)
{
@@ -54,9 +56,9 @@ abstract class Process extends \Swoole\Process implements SProcess
/**
* @return string
*/
private function getPrefix(): string
#[Pure] private function getPrefix(): string
{
return ucfirst(rtrim(Snowflake::app()->id, ':') . ': ' . get_called_class());
return Snowflake::app()->id . get_called_class();
}