소스 검색

refactor: use httputil.NewClientWithDriver func

ayn2op 7 달 전
부모
커밋
93f6873ffc
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      internal/http/client.go

+ 1 - 2
internal/http/client.go

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