Skip to content

Commit

Permalink
increased get cid header timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
rotarur committed Jun 25, 2024
1 parent df7144e commit ce69ff5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ func GetCID(url string, payload io.Reader) (*http.Response, error) {
// Set custom User-Agent for cloudflare WAF policies
req.Header.Set("User-Agent", "graphprotocol/ipfs-mgm")

// configure http transport
tr := &http.Transport{
DisableCompression: false,
ResponseHeaderTimeout: time.Duration(time.Second * time.Duration(GATEWAY_TIMEOUT_HEADERS)),
}
// Create an HTTP client
client := &http.Client{}
client := &http.Client{Transport: tr}

res, err := client.Do(req)
if err != nil {
Expand Down

0 comments on commit ce69ff5

Please sign in to comment.