increase default timeout for client

Apple servers sometimes takes more than the default time causing client timeouts, increase the default timeout to cater increases response times.
This commit is contained in:
ashhadsheikh
2020-08-21 14:17:29 +05:00
committed by GitHub
parent c16a822c91
commit cb6856d274

View File

@@ -91,7 +91,7 @@ func New() *Client {
ProductionURL: ProductionURL,
SandboxURL: SandboxURL,
httpCli: &http.Client{
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
},
}
return client