This commit is contained in:
2020-10-09 19:21:02 +08:00
parent eebc23da5b
commit 0e722df943
+11 -10
View File
@@ -18,16 +18,15 @@ use function Amp\run;
/**
* +------------------------------------------------------------------------------
* Kafka protocol since Kafka v0.8
* +------------------------------------------------------------------------------
*
* @package
* @version $_SWANBR_VERSION_$
* @copyright Copyleft
* @author $_SWANBR_AUTHOR_$
* +------------------------------------------------------------------------------
*/
* Kafka protocol since Kafka v0.8
* +------------------------------------------------------------------------------
*
* @package
* @version $_SWANBR_VERSION_$
* @copyright Copyleft
* @author $_SWANBR_AUTHOR_$
* +------------------------------------------------------------------------------
*/
class Consumer
{
use \Psr\Log\LoggerAwareTrait;
@@ -75,8 +74,10 @@ class Consumer
}
$process->start();
$this->isRunning = true;
if ($isBlock) {
run();
}
}
// }}}
// }}}