nacos icon indicating copy to clipboard operation
nacos copied to clipboard

Nacos2 配置中心 grpc请求方式 无法更新配置

Open woodynew opened this issue 1 year ago • 0 comments

Hyperf\Nacos\GrpcClient

public function listen(): void
    {
        $request = new ConfigBatchListenRequest(true, array_values($this->configListenContexts));
        $response = $this->request($request);
        if ($response instanceof ConfigChangeBatchListenResponse) {
            $changedConfigs = $response->changedConfigs;
            foreach ($changedConfigs as $changedConfig) {
                $this->handleConfig($changedConfig->tenant, $changedConfig->group, $changedConfig->dataId);
            }
        }
    }

config_center.drivers.nacos.client.grpc.enable=true的情况下 上面代码,当Nacos配置修改后,$response->changedConfigs没有任何配置数据

woodynew avatar May 09 '23 11:05 woodynew