改名
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user