start of wiring for configurable context

This commit is contained in:
Ben Kraft
2021-03-22 19:08:08 -07:00
parent 17a95fd4de
commit 59ca841a6b
19 changed files with 56 additions and 51 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ func (client *Client) MakeRequest(ctx context.Context, query string, retval inte
return err
}
req = req.WithContext(ctx)
if ctx != nil {
req = req.WithContext(ctx)
}
resp, err := client.httpClient.Do(req)
if err != nil {
return err