fix pointer dereference in memory registry
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
81a7cf458c
commit
7d5bdcf993
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user