From 906acc055dde88155cff24d3b9e9b2667414ed79 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 28 Nov 2020 11:47:00 -0500 Subject: [PATCH] client: populate NodeID from service name --- client/graphql.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/graphql.go b/client/graphql.go index 7b034ad54dd5541255739b254e11d00532322077..0f0de576717e4f0c415c034c02cd017a16430dd5 100644 --- a/client/graphql.go +++ b/client/graphql.go @@ -44,9 +44,9 @@ func Execute(ctx context.Context, username string, svc string, } req.Header.Add("Content-Type", "application/json") auth := InternalAuth{ - Name: username, - // TODO: Populate these better - ClientID: "core-go", + Name: username, + ClientID: config.ServiceName(ctx), + // TODO: Populate this: NodeID: "core-go", } authBlob, err := json.Marshal(&auth)