refactor: use web module timeout everywhere

This commit is contained in:
2021-09-04 23:18:34 +02:00
parent e68c7fc71c
commit a3e02540f6
3 changed files with 8 additions and 5 deletions

View File

@ -142,7 +142,7 @@ func (a ByAppName) Less(i, j int) bool {
var appsCatalogueURL = "https://apps.coopcloud.tech"
func appsCatalogueFSIsLatest() (bool, error) {
httpClient := &http.Client{Timeout: 5 * time.Second}
httpClient := &http.Client{Timeout: web.Timeout}
res, err := httpClient.Head(appsCatalogueURL)
if err != nil {
return false, err