You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "complone (GitHub)" <gi...@apache.org> on 2019/08/15 13:04:55 UTC
[GitHub] [dubbo] complone commented on issue #4206: Optimize the
logic in org.apache.dubbo.common.URL#getEncodedServiceKey()
> 目前的实施`org.apache.dubbo.common.URL#getEncodedServiceKey()` 并不优雅。
>
> ```java
> public String getEncodedServiceKey(){
> String serviceKey = this 。getServiceKey();
> serviceKey = serviceKey 。replaceFirst(“ / ”,“ * ”);
> return serviceKey;
> }
> ```
>
> 用“*”替换“/”的目的是Zookeeper不支持“/”作为密钥的有效字符。
>
> 提案:
>
> 添加新参数`getServiceKey()`,例如:`getServiceKey(String delimiter)`,并在不同的场景中传递“/”或“*”。
Do the different scenarios referred to here refer to different registration centers? I didn't understand what you mean.
[ Full content available at: https://github.com/apache/dubbo/issues/4206 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org