registry/etcd: fix services combining (#1901)
This commit is contained in:
parent
aefd052dd7
commit
991cdba91d
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user