fix: use infura to avoid cloudflare IPFS rate limit
This commit is contained in:
parent
559e6dddfa
commit
e89f8bbc50
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue