Skip to content

Commit

Permalink
feat: increased timeout for api request
Browse files Browse the repository at this point in the history
  • Loading branch information
kutovoys committed May 23, 2024
1 parent b8c4b49 commit a38220d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ func createHttpClient() *http.Client {
return net.Dial("unix", config.CLIConfig.SocketPath)
},
},
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
}
}
return &http.Client{Timeout: 10 * time.Second}
return &http.Client{Timeout: 30 * time.Second}
}

func createRequest(method, path, token string) (*http.Request, error) {
Expand Down

0 comments on commit a38220d

Please sign in to comment.