refactor: use httputil.NewClientWithDriver func
This commit is contained in:
parent
ed2a4e53e5
commit
93f6873ffc
1 changed files with 1 additions and 2 deletions
|
|
@ -9,9 +9,8 @@ import (
|
|||
)
|
||||
|
||||
func NewClient(token string) *api.Client {
|
||||
httpClient := httputil.NewClient()
|
||||
stdClient := http.DefaultClient
|
||||
stdClient.Transport = NewTransport()
|
||||
httpClient.Client = httpdriver.WrapClient(*stdClient)
|
||||
httpClient := httputil.NewClientWithDriver(httpdriver.WrapClient(*stdClient))
|
||||
return api.NewCustomClient(token, httpClient)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue