registry/etcd: fix services combining (#1901)

This commit is contained in:
ben-toogood
2020-08-06 15:38:50 +01:00
committed by GitHub
parent aefd052dd7
commit 991cdba91d

View File

@@ -519,9 +519,9 @@ func (e *etcdRegistry) ListServices(opts ...registry.ListOption) ([]*registry.Se
continue continue
} }
v, ok := versions[sn.Version] v, ok := versions[sn.Name+sn.Version]
if !ok { if !ok {
versions[sn.Version] = sn versions[sn.Name+sn.Version] = sn
continue continue
} }