You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/02/26 10:42:16 UTC
[GitHub] [dubbo-go] yakecanlee opened a new issue #1065: Configurators path in zk is not right
yakecanlee opened a new issue #1065:
URL: https://github.com/apache/dubbo-go/issues/1065
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
-->
**What happened**:
the func `pathToKey` is not right.
```go
func (l *CacheListener) pathToKey(path string) string {
//origin
return strings.Replace(strings.Replace(path, l.rootPath+"/", "", -1), "/", ".", -1)
}
```
it should be like this.
```go
func (l *CacheListener) pathToKey(path string) string {
groupKey := strings.Replace(strings.Replace(path, l.rootPath+"/", "", -1), "/", ".", -1)
return groupKey[strings.Index(groupKey, ".")+1:]
}
```
**What you expected to happen**:
**How to reproduce it (as minimally and precisely as possible)**:
**Anything else we need to know?**:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-go] yakecanlee closed issue #1065: Configurators path in zk is not right
Posted by GitBox <gi...@apache.org>.
yakecanlee closed issue #1065:
URL: https://github.com/apache/dubbo-go/issues/1065
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org