Skip to content
Snippets Groups Projects
Commit 86e1dbd0 authored by yakecanlee's avatar yakecanlee
Browse files

fix zk listener func pathToKey

parent f1f81ebd
Branches
Tags
No related merge requests found
......@@ -77,5 +77,6 @@ func (l *CacheListener) DataChange(event remoting.Event) bool {
}
func (l *CacheListener) pathToKey(path string) string {
return strings.Replace(strings.Replace(path, l.rootPath+"/", "", -1), "/", ".", -1)
groupKey := strings.Replace(strings.Replace(path, l.rootPath+"/", "", -1), "/", ".", -1)
return groupKey[strings.Index(groupKey, ".")+1:]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment