改名
This commit is contained in:
+3
-1
@@ -52,7 +52,9 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
private function waite(array $kafkaServer)
|
private function waite(array $kafkaServer)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
swoole_set_process_name('Kafka_' . $kafkaServer['topic']);
|
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
|
||||||
|
swoole_set_process_name($prefix . ' Kafka_' . $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)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user