This commit is contained in:
2020-12-23 16:54:51 +08:00
parent c4030fc659
commit 062b7ff769
2 changed files with 5 additions and 13 deletions
+5
View File
@@ -15,6 +15,7 @@ use Snowflake\Snowflake;
use Swoole\Coroutine;
use Swoole\Coroutine\Channel;
use Swoole\Coroutine\WaitGroup;
use Swoole\IDEHelper\StubGenerators\Swoole;
use Swoole\Process;
use Snowflake\Abstracts\Config as SConfig;
use Throwable;
@@ -38,6 +39,10 @@ class Kafka extends \Snowflake\Process\Process
{
$this->channelListener();
Process::signal(SIGUSR1, function () use ($process) {
var_dump($process);
});
$waite = new WaitGroup();
$kafkaServers = SConfig::get('kafka.servers');
foreach ($kafkaServers as $kafkaServer) {