From c2cd4e55577637e088303f1ba2bae3346a772607 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Mon, 3 Feb 2020 16:18:57 +0100 Subject: [PATCH] less confusing naming --- pkg/service/v0/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/service/v0/service.go b/pkg/service/v0/service.go index 166c4811c3..79b4bb4487 100644 --- a/pkg/service/v0/service.go +++ b/pkg/service/v0/service.go @@ -53,19 +53,19 @@ func (s Service) Get(c context.Context, req *proto.Query, res *proto.Record) err // List implements the SettingsServiceHandler interface generated on accounts.pb.micro.go func (s Service) List(ctx context.Context, in *empty.Empty, res *proto.Records) error { - records := &proto.Records{} + r := &proto.Records{} contents, err := registry.Store.List() if err != nil { return err } for _, v := range contents { - records.Records = append(records.Records, &proto.Record{ + r.Records = append(r.Records, &proto.Record{ Key: v.Key, }) } - res.Records = records.Records + res.Records = r.Records return nil }