refactor: use httputil.NewClientWithDriver func

This commit is contained in:
ayn2op 2025-09-22 21:49:15 -04:00
parent ed2a4e53e5
commit 93f6873ffc

View file

@ -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)
}