From 67ccdda6944fe52f66e0aafe08c622cebcb07fd0 Mon Sep 17 00:00:00 2001 From: youngmin Date: Tue, 4 Jun 2024 13:51:54 +0900 Subject: [PATCH] fix: change the type of httpCli to HTTPClient --- store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store.go b/store.go index 59c7e96..b4430fd 100644 --- a/store.go +++ b/store.go @@ -47,7 +47,7 @@ type StoreConfig struct { type StoreClient struct { Token *Token - httpCli *http.Client + httpCli HTTPClient cert *Cert hostUrl string } @@ -73,7 +73,7 @@ func NewStoreClient(config *StoreConfig) *StoreClient { } // NewStoreClientWithHTTPClient creates a appstore server api client with a custom http client. -func NewStoreClientWithHTTPClient(config *StoreConfig, httpClient *http.Client) *StoreClient { +func NewStoreClientWithHTTPClient(config *StoreConfig, httpClient HTTPClient) *StoreClient { token := &Token{} token.WithConfig(config) hostUrl := HostProduction