Skip to content

Commit

Permalink
fix: remove http client timeout for resources (#259)
Browse files Browse the repository at this point in the history
* remove http client timeout for resources

* fix imports
  • Loading branch information
k3llymariee authored May 9, 2024
1 parent af22b5d commit 56cbcdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/resources/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"net/http"
"net/url"
"time"

"ldcli/internal/errors"
)
Expand All @@ -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)
Expand Down

0 comments on commit 56cbcdb

Please sign in to comment.