mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
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:
parent
2b29ba5905
commit
56064931e3
@ -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
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user