From f5d3efa53ecc51673e39eb35c2af4131f1e86259 Mon Sep 17 00:00:00 2001 From: Chanwit Kaewkasi Date: Tue, 27 Jan 2015 15:32:28 +0700 Subject: [PATCH] fix fatal error when registering node Signed-off-by: Chanwit Kaewkasi --- discovery/zookeeper/zookeeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/zookeeper/zookeeper.go b/discovery/zookeeper/zookeeper.go index 4902e23b3f..155f1285f3 100644 --- a/discovery/zookeeper/zookeeper.go +++ b/discovery/zookeeper/zookeeper.go @@ -124,7 +124,7 @@ func (s *ZkDiscoveryService) Watch(callback discovery.WatchCallback) { } func (s *ZkDiscoveryService) Register(addr string) error { - nodePath := "/" + path.Join(s.fullpath(), addr) + nodePath := path.Join(s.fullpath(), addr) // check existing for the parent path first exist, _, err := s.conn.Exists(s.fullpath())