Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 53dd724

Browse files
authored
Increase timeout
1 parent f20891b commit 53dd724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func generateCsr(priv interface{}) ([]byte, error) {
220220

221221
func requestCert(apiURL, id, token string, csr []byte) (string, error) {
222222
client := http.Client{
223-
Timeout: 5 * time.Second,
223+
Timeout: 30 * time.Second,
224224
}
225225

226226
pemData := bytes.NewBuffer([]byte{})
@@ -260,7 +260,7 @@ func requestCert(apiURL, id, token string, csr []byte) (string, error) {
260260

261261
func requestURL(apiURL, token string) (string, error) {
262262
client := http.Client{
263-
Timeout: 5 * time.Second,
263+
Timeout: 30 * time.Second,
264264
}
265265

266266
req, err := http.NewRequest("POST", apiURL+"/devices/v1/connect", nil)

0 commit comments

Comments
 (0)