From ee6fe6dfe5ccc7bcd04bd38edc9eebd4991aac8c Mon Sep 17 00:00:00 2001 From: albttx Date: Fri, 3 Nov 2023 22:51:42 +0000 Subject: [PATCH] chore: update cosmosdirectory timeout to 2s --- pkg/cosmosdirectory/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cosmosdirectory/get.go b/pkg/cosmosdirectory/get.go index d59b9ff..fe46612 100644 --- a/pkg/cosmosdirectory/get.go +++ b/pkg/cosmosdirectory/get.go @@ -10,7 +10,7 @@ import ( const CosmosDirectoryURL = "https://chains.cosmos.directory" func query() (*CosmosDirectory, error) { - httpClient := &http.Client{Timeout: 2 * time.Second} + httpClient := &http.Client{Timeout: 5 * time.Second} r, err := httpClient.Get(CosmosDirectoryURL) if err != nil { return nil, err