File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 70
70
71
71
- ` GRAPH_IPFS_TIMEOUT ` : timeout for IPFS, which includes requests for manifest files
72
72
and from mappings (in seconds, default is 60).
73
- - ` GRAPH_MAX_IPFS_FILE_BYTES ` : maximum size for a file that can be retrieved (in bytes, default is 256 MiB).
73
+ - ` GRAPH_MAX_IPFS_FILE_BYTES ` : maximum size for a file that can be retrieved by an ` ipfs cat ` call.
74
+ This affects both subgraph definition files and ` file/ipfs ` data sources. In bytes, default is 25 MiB.
74
75
- ` GRAPH_MAX_IPFS_MAP_FILE_SIZE ` : maximum size of files that can be processed
75
76
with ` ipfs.map ` . When a file is processed through ` ipfs.map ` , the entities
76
77
generated from that are kept in memory until the entire file is done
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub struct EnvVarsMapping {
46
46
/// Sets the `ipfs.cat` file size limit.
47
47
///
48
48
/// Set by the environment variable `GRAPH_MAX_IPFS_FILE_BYTES` (expressed in
49
- /// bytes). Defaults to 256 MiB.
49
+ /// bytes). Defaults to 25 MiB.
50
50
pub max_ipfs_file_bytes : usize ,
51
51
52
52
/// Limits per second requests to IPFS for file data sources.
@@ -110,7 +110,7 @@ pub struct InnerMappingHandlers {
110
110
#[ envconfig( from = "GRAPH_MAX_IPFS_MAP_FILE_SIZE" , default = "" ) ]
111
111
max_ipfs_map_file_size : WithDefaultUsize < usize , { 256 * 1024 * 1024 } > ,
112
112
#[ envconfig( from = "GRAPH_MAX_IPFS_FILE_BYTES" , default = "" ) ]
113
- max_ipfs_file_bytes : WithDefaultUsize < usize , { 256 * 1024 * 1024 } > ,
113
+ max_ipfs_file_bytes : WithDefaultUsize < usize , { 25 * 1024 * 1024 } > ,
114
114
#[ envconfig( from = "GRAPH_IPFS_REQUEST_LIMIT" , default = "100" ) ]
115
115
ipfs_request_limit : u16 ,
116
116
#[ envconfig( from = "GRAPH_ALLOW_NON_DETERMINISTIC_IPFS" , default = "false" ) ]
You can’t perform that action at this time.
0 commit comments