diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16800c6..b376145 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,12 @@ name: build + on: push: branches: - main pull_request: + branches: + - main concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} diff --git a/client.go b/client.go index 16c233d..d5dad22 100644 --- a/client.go +++ b/client.go @@ -146,14 +146,8 @@ func newClient(apiKey, apiSecret string, options ...ClientOption) (*Client, erro fn(client) } - tr := http.DefaultTransport.(*http.Transport).Clone() //nolint:forcetypeassert - tr.MaxIdleConnsPerHost = 5 - tr.ExpectContinueTimeout = 2 * time.Second - tr.IdleConnTimeout = 59 * time.Second - client.httpClient = &http.Client{ - Timeout: client.defaultTimeout, - Transport: tr, + Timeout: client.defaultTimeout, } token, err := client.createTokenWithClaims(jwt.MapClaims{"server": true})