return chrooted path in RMR instead of full node path

This commit is contained in:
Denis Zheleztsov 2017-05-04 16:44:22 +03:00
parent 0f285105f2
commit 8a575eac18
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ func (zk ZooNode) RM(w http.ResponseWriter, r *http.Request) {
go func() { zk.RMR(rmPath) }()
w.WriteHeader(200)
w.Write([]byte(rmPath))
w.Write([]byte(path))
}
// GET ...

View File

@ -31,7 +31,7 @@ func (conf Zk) InitConnection() (*zk.Conn, error) {
return conn, err
}
// GetChildrens ...
// GetChildrens get Zookeeper node childrens
func (z ZooNode) GetChildrens(path string) Ls {
var lsPath string
lsPath = strings.Join([]string{z.Path, path}, "")