mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-01 11:17:54 +08:00
guard zookeeper.enable
This commit is contained in:
parent
496872fb72
commit
d866567016
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user