改名
This commit is contained in:
+4
-2
@@ -46,12 +46,13 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $kafkaServer
|
* @param array $kafkaServer
|
||||||
|
* @throws ComponentException
|
||||||
*/
|
*/
|
||||||
private function waite(array $kafkaServer)
|
private function waite(array $kafkaServer)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
|
$prefix = rtrim(Snowflake::app()->id, ':');
|
||||||
swoole_set_process_name($prefix . ': Kafka Consumer ' . $kafkaServer['topic']);
|
swoole_set_process_name($prefix . ' Kafka Consumer ' . $kafkaServer['topic']);
|
||||||
|
|
||||||
[$config, $topic, $conf] = $this->kafkaConfig($kafkaServer);
|
[$config, $topic, $conf] = $this->kafkaConfig($kafkaServer);
|
||||||
if (empty($config) && empty($topic) && empty($conf)) {
|
if (empty($config) && empty($topic) && empty($conf)) {
|
||||||
@@ -73,6 +74,7 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
/**
|
/**
|
||||||
* @param ConsumerTopic $topic
|
* @param ConsumerTopic $topic
|
||||||
* @param $interval
|
* @param $interval
|
||||||
|
* @throws ComponentException
|
||||||
*/
|
*/
|
||||||
private function resolve(ConsumerTopic $topic, $interval)
|
private function resolve(ConsumerTopic $topic, $interval)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user