Skip to content
Permalink
Browse files
refactor: rm no use
  • Loading branch information
PhilYue committed Jan 23, 2022
1 parent abdc227 commit d98de6881f29b86d1844c92bbbfdfbb340b14799
Showing 1 changed file with 0 additions and 3 deletions.
@@ -103,8 +103,6 @@ func (sd *zookeeperDiscovery) QueryServicesByName(serviceNames []string) ([]serv
var instancesAll []servicediscovery.ServiceInstance
for _, s := range serviceNames {

var instances []servicediscovery.ServiceInstance

ids, err := sd.getClient().GetChildren(sd.pathForName(s))
logger.Debugf("%s get services %s, services instanceIds %s", common.ZKLogDiscovery, s, ids)
if err != nil {
@@ -118,7 +116,6 @@ func (sd *zookeeperDiscovery) QueryServicesByName(serviceNames []string) ([]serv
if err != nil {
return nil, err
}
instances = append(instances, *instance)
instancesAll = append(instancesAll, *instance)
}
}

0 comments on commit d98de68

Please sign in to comment.