This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git

commit f7f99100250e7aaf4b4376ca91eaa032167f8714
Author: kezhenxu94 <kezhenx...@163.com>
AuthorDate: Thu Nov 7 21:54:51 2019 +0800

    Rename
---
 graphql/client/client.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/graphql/client/client.go b/graphql/client/client.go
index 10a680a..0b050e3 100644
--- a/graphql/client/client.go
+++ b/graphql/client/client.go
@@ -33,7 +33,7 @@ func Services(duration schema.Duration) []schema.Service {
                logger.Log.Debugln(msg)
        }
 
-       var services map[string][]schema.Service
+       var response map[string][]schema.Service
        request := graphql.NewRequest(`
                query ($duration: Duration!) {
                        services: getAllServices(duration: $duration) {
@@ -42,10 +42,10 @@ func Services(duration schema.Duration) []schema.Service {
                }
        `)
        request.Var("duration", duration)
-       if err := client.Run(ctx, request, &services); err != nil {
+       if err := client.Run(ctx, request, &response); err != nil {
                logger.Log.Fatalln(err)
                panic(err)
        }
 
-       return services["services"]
+       return response["services"]
 }

Reply via email to