From 3722595c36c4f0cf680e11b6de6452aad088bb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Oct 2020 18:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Consumer.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Kafka/Consumer.php b/Kafka/Consumer.php index aaa0b12c..108058eb 100644 --- a/Kafka/Consumer.php +++ b/Kafka/Consumer.php @@ -14,16 +14,18 @@ namespace Kafka; +use function Amp\run; + /** -+------------------------------------------------------------------------------ + * +------------------------------------------------------------------------------ * Kafka protocol since Kafka v0.8 -+------------------------------------------------------------------------------ +* +------------------------------------------------------------------------------ * * @package * @version $_SWANBR_VERSION_$ * @copyright Copyleft * @author $_SWANBR_AUTHOR_$ -+------------------------------------------------------------------------------ +* +------------------------------------------------------------------------------ */ class Consumer @@ -73,6 +75,7 @@ class Consumer } $process->start(); $this->isRunning = true; + run(); } // }}}