diff --git a/registry/memory/util.go b/registry/memory/util.go index e49f30c8..965c75b5 100644 --- a/registry/memory/util.go +++ b/registry/memory/util.go @@ -44,9 +44,9 @@ func recordToService(r *record) *registry.Service { endpoints := make([]*registry.Endpoint, len(r.Endpoints)) for i, e := range r.Endpoints { request := new(registry.Value) - request = e.Request + *request = *e.Request response := new(registry.Value) - response = e.Response + *response = *e.Response metadata := make(map[string]string) for k, v := range e.Metadata {