From 6e6c77c9d9d6a5ecb54e1c1ae362626661ba3271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= Date: Wed, 11 Nov 2020 12:06:59 +0800 Subject: [PATCH] Fixed config-etcd does not works in coroutine style server. (#2790) * Fixed config-etcd does not works in coroutine style server. * Update CHANGELOG-2.0.md --- CHANGELOG-2.0.md | 1 + src/config-etcd/src/Listener/BootProcessListener.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG-2.0.md b/CHANGELOG-2.0.md index 2d137f10d..9105f7868 100644 --- a/CHANGELOG-2.0.md +++ b/CHANGELOG-2.0.md @@ -4,6 +4,7 @@ - [#2783](https://github.com/hyperf/hyperf/pull/2783) Fixed nsq consumer does not works in coroutine style server. - [#2788](https://github.com/hyperf/hyperf/pull/2788) Fixed call non-static method `__handlePropertyHandler()` statically in class proxy. +- [#2790](https://github.com/hyperf/hyperf/pull/2790) Fixed `BootProcessListener` of `config-etcd` does not works in coroutine style server. ## Optimized diff --git a/src/config-etcd/src/Listener/BootProcessListener.php b/src/config-etcd/src/Listener/BootProcessListener.php index f101bd310..593bd884f 100644 --- a/src/config-etcd/src/Listener/BootProcessListener.php +++ b/src/config-etcd/src/Listener/BootProcessListener.php @@ -20,6 +20,7 @@ use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Framework\Event\BeforeWorkerStart; use Hyperf\Process\Event\BeforeProcessHandle; +use Hyperf\Server\Event\MainCoroutineServerStart; use Hyperf\Utils\Coordinator\Constants; use Hyperf\Utils\Coordinator\CoordinatorManager; use Hyperf\Utils\Coroutine; @@ -69,6 +70,7 @@ class BootProcessListener implements ListenerInterface BeforeWorkerStart::class, BeforeProcessHandle::class, BeforeHandle::class, + MainCoroutineServerStart::class, ]; }