Skip to content

Commit

Permalink
Pass correct host to gql client (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcoe committed Jun 23, 2022
1 parent 94b0f6e commit 91ca4ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/api/gql_client.go
Expand Up @@ -23,10 +23,10 @@ type gqlClient struct {

func NewGQLClient(host string, opts *api.ClientOptions) api.GQLClient {
httpClient := NewHTTPClient(opts)

endpoint := gqlEndpoint(host)
return gqlClient{
client: graphql.NewClient(host, &httpClient),
host: gqlEndpoint(host),
client: graphql.NewClient(endpoint, &httpClient),
host: endpoint,
httpClient: &httpClient,
}
}
Expand Down

1 comment on commit 91ca4ef

@Chinnu958

This comment was marked as spam.

Please sign in to comment.