guard zookeeper.enable

This commit is contained in:
reasno 2020-03-14 17:55:53 +08:00
parent 496872fb72
commit d866567016

View File

@ -54,6 +54,10 @@ class BootProcessListener implements ListenerInterface
public function process(object $event)
{
if (! $this->config->get('zookeeper.enable', false)) {
return;
}
if (! $this->config->get('zookeeper.use_standalone_process', true)) {
Coroutine::create(function () {
$interval = $this->config->get('zookeeper.interval', 5);