This commit is contained in:
2021-08-19 18:56:38 +08:00
parent 2b4929fa97
commit 1b9647da65
+1 -2
View File
@@ -74,7 +74,7 @@ class Kafka extends CustomProcess
$topic->consumeStart(0, RD_KAFKA_OFFSET_STORED);
do {
if ($this->isStop) {
if ($this->checkProcessIsStop()) {
$this->exit();
break;
}
@@ -106,7 +106,6 @@ class Kafka extends CustomProcess
logger()->error($message->errstr());
}
}
Coroutine::sleep(0.01);
} catch (Throwable $exception) {
logger()->addError($exception, 'throwable');
}