Skip to content

Commit ca4efc5

Browse files
authored
Merge pull request #12 from holyachon/change-type-of-http-client
fix: change the type of httpCli to HTTPClient
2 parents a045e25 + 67ccdda commit ca4efc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

store.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type StoreConfig struct {
4747

4848
type StoreClient struct {
4949
Token *Token
50-
httpCli *http.Client
50+
httpCli HTTPClient
5151
cert *Cert
5252
hostUrl string
5353
}
@@ -73,7 +73,7 @@ func NewStoreClient(config *StoreConfig) *StoreClient {
7373
}
7474

7575
// NewStoreClientWithHTTPClient creates a appstore server api client with a custom http client.
76-
func NewStoreClientWithHTTPClient(config *StoreConfig, httpClient *http.Client) *StoreClient {
76+
func NewStoreClientWithHTTPClient(config *StoreConfig, httpClient HTTPClient) *StoreClient {
7777
token := &Token{}
7878
token.WithConfig(config)
7979
hostUrl := HostProduction

0 commit comments

Comments
 (0)