From 56cbcdb54daa1e2823db64c7c03418fdc9a36994 Mon Sep 17 00:00:00 2001 From: Kelly Hofmann <55991524+k3llymariee@users.noreply.github.com> Date: Thu, 9 May 2024 14:33:23 -0700 Subject: [PATCH] fix: remove http client timeout for resources (#259) * remove http client timeout for resources * fix imports --- internal/resources/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/resources/client.go b/internal/resources/client.go index 07008410..b65fc18e 100644 --- a/internal/resources/client.go +++ b/internal/resources/client.go @@ -6,7 +6,6 @@ import ( "io" "net/http" "net/url" - "time" "ldcli/internal/errors" ) @@ -26,7 +25,7 @@ func NewClient(cliVersion string) ResourcesClient { } func (c ResourcesClient) MakeRequest(accessToken, method, path, contentType string, query url.Values, data []byte) ([]byte, error) { - client := http.Client{Timeout: 3 * time.Second} + client := http.Client{} req, _ := http.NewRequest(method, path, bytes.NewReader(data)) req.Header.Add("Authorization", accessToken)