Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Bump default ipfs timeout to 60 seconds #4324

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ those.
## IPFS

- `GRAPH_IPFS_TIMEOUT`: timeout for IPFS, which includes requests for manifest files
and from mappings (in seconds, default is 30).
and from mappings (in seconds, default is 60).
- `GRAPH_MAX_IPFS_FILE_BYTES`: maximum size for a file that can be retrieved (in bytes, default is 256 MiB).
- `GRAPH_MAX_IPFS_MAP_FILE_SIZE`: maximum size of files that can be processed
with `ipfs.map`. When a file is processed through `ipfs.map`, the entities
Expand Down
4 changes: 2 additions & 2 deletions graph/src/env/mappings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct EnvVarsMapping {
/// The timeout for all IPFS requests.
///
/// Set by the environment variable `GRAPH_IPFS_TIMEOUT` (expressed in
/// seconds). The default value is 30s.
/// seconds). The default value is 60s.
pub ipfs_timeout: Duration,
/// Sets the `ipfs.map` file size limit.
///
Expand Down Expand Up @@ -105,7 +105,7 @@ pub struct InnerMappingHandlers {
max_ipfs_cache_file_size: WithDefaultUsize<usize, { 1024 * 1024 }>,
#[envconfig(from = "GRAPH_MAX_IPFS_CACHE_SIZE", default = "50")]
max_ipfs_cache_size: u64,
#[envconfig(from = "GRAPH_IPFS_TIMEOUT", default = "30")]
#[envconfig(from = "GRAPH_IPFS_TIMEOUT", default = "60")]
ipfs_timeout_in_secs: u64,
#[envconfig(from = "GRAPH_MAX_IPFS_MAP_FILE_SIZE", default = "")]
max_ipfs_map_file_size: WithDefaultUsize<usize, { 256 * 1024 * 1024 }>,
Expand Down