dubbo-python icon indicating copy to clipboard operation
dubbo-python copied to clipboard

连接Thrift发布的Iface接口时出错

Open leongongye opened this issue 7 years ago • 0 comments

当用Server端发布Thrift格式的service时,接口中包含 $ 符号。 在subscribe 时没有转义

修改建议: --- registry.py 2017-12-14 17:28:06.000000000 +0800 +++ /tmp/registry.py 2017-12-14 17:25:48.000000000 +0800 @@ -199,7 +199,7 @@ """ version = kwargs.get('version', '') group = kwargs.get('group', '')

  •    children = self.__zk.get_children('{0}/{1}/{2}'.format('dubbo', urllib.quote(interface), 'providers'),
    
  •    children = self.__zk.get_children('{0}/{1}/{2}'.format('dubbo', interface, 'providers'),
                                         watch=self.event_listener)
       # 全部重新添加
       self._compare_swap_nodes(interface, self.__unquote(children))
    

leongongye avatar Dec 14 '17 09:12 leongongye