fix(provider): remove default HTTP client timeout setting and unnecessary check of context
This commit is contained in:
parent
54ec4797e7
commit
8911b44a27
1 changed files with 0 additions and 1 deletions
|
|
@ -122,7 +122,6 @@ func NewProvider(apiKey, apiBase, proxy string, opts ...Option) *Provider {
|
|||
apiBase: strings.TrimRight(apiBase, "/"),
|
||||
httpClient: retryClient.StandardClient(),
|
||||
}
|
||||
p.httpClient.Timeout = defaultRequestTimeout
|
||||
for _, opt := range opts {
|
||||
if opt != nil {
|
||||
opt(p)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue