改名
This commit is contained in:
+7
-4
@@ -40,10 +40,11 @@ class Kafka implements CustomProcess
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @param Process $process
|
||||||
* @throws ConfigException
|
* @return string
|
||||||
*/
|
* @throws ConfigException
|
||||||
|
*/
|
||||||
public function getProcessName(Process $process): string
|
public function getProcessName(Process $process): string
|
||||||
{
|
{
|
||||||
$name = Config::get('id', 'system') . '[' . $process->pid . ']';
|
$name = Config::get('id', 'system') . '[' . $process->pid . ']';
|
||||||
@@ -123,6 +124,8 @@ class Kafka implements CustomProcess
|
|||||||
{
|
{
|
||||||
go(function () use ($topic, $message) {
|
go(function () use ($topic, $message) {
|
||||||
try {
|
try {
|
||||||
|
var_dump($topic, $message);
|
||||||
|
|
||||||
$server = Snowflake::app()->getSwoole();
|
$server = Snowflake::app()->getSwoole();
|
||||||
|
|
||||||
$setting = $server->setting['worker_num'];
|
$setting = $server->setting['worker_num'];
|
||||||
|
|||||||
Reference in New Issue
Block a user