fix: use infura to avoid cloudflare IPFS rate limit

This commit is contained in:
Richard Ramos 2022-02-13 19:02:32 -04:00
parent 559e6dddfa
commit e89f8bbc50
2 changed files with 2 additions and 2 deletions

View File

@ -480,7 +480,7 @@ func (api *API) ResourceURL(ctx context.Context, chainID uint64, username string
if err != nil {
return nil, errors.Wrap(err, "failed to obtain base36 representation")
}
host := str + ".ipfs.cf-ipfs.com"
host := str + ".ipfs.infura-ipfs.io/"
return &uri{scheme, host, ""}, nil
case "ipns-ns":
id, offset := binary.Uvarint(data)

View File

@ -30,7 +30,7 @@ import (
"github.com/status-im/status-go/services/wallet/bigint"
)
const ipfsGateway = ".ipfs.cf-ipfs.com"
const ipfsGateway = ".ipfs.infura-ipfs.io/"
const maxConcurrentRequests = 3
// ConnectionType constants