Skip to content

Commit

Permalink
Created a WithContext options to LightsparkClient that allows rec…
Browse files Browse the repository at this point in the history
…eiving a context for proper termination of every called operation.
  • Loading branch information
balena-zh committed Mar 20, 2024
1 parent 892cd05 commit efe9e84
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 73 deletions.
1 change: 1 addition & 0 deletions requester/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (r *Requester) ExecuteGraphql(query string, variables map[string]interface{
) (map[string]interface{}, error) {
return r.ExecuteGraphqlWithContext(context.Background(), query, variables, signingKey)
}

func (r *Requester) ExecuteGraphqlWithContext(ctx context.Context, query string, variables map[string]interface{},
signingKey SigningKey,
) (map[string]interface{}, error) {
Expand Down
Loading

0 comments on commit efe9e84

Please sign in to comment.