forked from toolshed/abra
refactor: use web module timeout everywhere
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user