Fixed nsq consumer does not works in coroutine style server. (#2783)

* Fixed nsq consumer does not works in coroutine style server.

* Update CHANGELOG-2.0.md
This commit is contained in:
李铭昕 2020-11-10 00:03:23 +08:00 committed by GitHub
parent 2b29ba5905
commit 56064931e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# v2.0.19 - TBD
## Fixed
- [#2783](https://github.com/hyperf/hyperf/pull/2783) Fixed nsq consumer does not works in coroutine style server.
# v2.0.18 - 2020-11-09
## Added

View File

@ -14,6 +14,7 @@ namespace Hyperf\Nsq\Listener;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Framework\Event\BeforeMainServerStart;
use Hyperf\Nsq\ConsumerManager;
use Hyperf\Server\Event\MainCoroutineServerStart;
use Psr\Container\ContainerInterface;
/**
@ -38,6 +39,7 @@ class BeforeMainServerStartListener implements ListenerInterface
{
return [
BeforeMainServerStart::class,
MainCoroutineServerStart::class,
];
}