@@ -78,6 +78,10 @@ pub struct EnvVarsMapping {
78
78
/// measure and can be removed after 2025-07-01, once we are sure the
79
79
/// new behavior works as intended.
80
80
pub store_errors_are_nondeterministic : bool ,
81
+
82
+ /// Maximum backoff time for FDS requests. Set by
83
+ /// `GRAPH_FDS_MAX_BACKOFF` in seconds, defaults to 600.
84
+ pub fds_max_backoff : Duration ,
81
85
}
82
86
83
87
// This does not print any values avoid accidentally leaking any sensitive env vars
@@ -116,6 +120,7 @@ impl TryFrom<InnerMappingHandlers> for EnvVarsMapping {
116
120
allow_non_deterministic_ipfs : x. allow_non_deterministic_ipfs . 0 ,
117
121
disable_declared_calls : x. disable_declared_calls . 0 ,
118
122
store_errors_are_nondeterministic : x. store_errors_are_nondeterministic . 0 ,
123
+ fds_max_backoff : Duration :: from_secs ( x. fds_max_backoff ) ,
119
124
} ;
120
125
Ok ( vars)
121
126
}
@@ -157,6 +162,8 @@ pub struct InnerMappingHandlers {
157
162
disable_declared_calls : EnvVarBoolean ,
158
163
#[ envconfig( from = "GRAPH_STORE_ERRORS_ARE_NON_DETERMINISTIC" , default = "false" ) ]
159
164
store_errors_are_nondeterministic : EnvVarBoolean ,
165
+ #[ envconfig( from = "GRAPH_FDS_MAX_BACKOFF" , default = "600" ) ]
166
+ fds_max_backoff : u64 ,
160
167
}
161
168
162
169
fn validate_ipfs_cache_location ( path : PathBuf ) -> Result < PathBuf , anyhow:: Error > {
0 commit comments