Fixed config of config_center.drivers.nacos.client does not work. (#3926)

This commit is contained in:
李铭昕 2021-08-10 12:56:07 +08:00 committed by GitHub
parent 107e08d185
commit 8b6d3f6d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## Fixed
- [#3925](https://github.com/hyperf/hyperf/pull/3925) Fixed bug that heartbeat failed caused by nacos light beat enabled.
- [#3926](https://github.com/hyperf/hyperf/pull/3926) Fixed bug that the config of `config_center.drivers.nacos.client` does not work.
## Added

View File

@ -20,7 +20,7 @@ class NacosClientFactory
{
public function __invoke(ContainerInterface $container)
{
$config = $container->get(ConfigInterface::class)->get('config-center.drivers.nacos.client', []);
$config = $container->get(ConfigInterface::class)->get('config_center.drivers.nacos.client', []);
if (empty($config)) {
return $container->get(Application::class);
}