Merge pull request #312 from chanwit/quick-fix-zk

Cleanup: fix fatal error when registering node
This commit is contained in:
Victor Vieux 2015-01-27 12:22:24 -08:00
commit cd56c0afcc
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (s *ZkDiscoveryService) Watch(callback discovery.WatchCallback) {
} }
func (s *ZkDiscoveryService) Register(addr string) error { 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 // check existing for the parent path first
exist, _, err := s.conn.Exists(s.fullpath()) exist, _, err := s.conn.Exists(s.fullpath())