fixup domain in ListServices

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-03-03 18:16:54 +03:00
parent c320c23913
commit a862562284

View File

@ -369,9 +369,9 @@ func (m *memory) ListServices(ctx context.Context, opts ...ListOption) ([]*Servi
// serialize the result, each version counts as an individual service // serialize the result, each version counts as an individual service
var result []*Service var result []*Service
for domain, service := range services { for _, service := range services {
for _, version := range service { for _, version := range service {
result = append(result, recordToService(version, domain)) result = append(result, recordToService(version, options.Domain))
} }
} }