@@ -78,6 +78,10 @@ pub struct EnvVarsMapping {
7878 /// measure and can be removed after 2025-07-01, once we are sure the
7979 /// new behavior works as intended.
8080 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 ,
8185}
8286
8387// This does not print any values avoid accidentally leaking any sensitive env vars
@@ -116,6 +120,7 @@ impl TryFrom<InnerMappingHandlers> for EnvVarsMapping {
116120 allow_non_deterministic_ipfs : x. allow_non_deterministic_ipfs . 0 ,
117121 disable_declared_calls : x. disable_declared_calls . 0 ,
118122 store_errors_are_nondeterministic : x. store_errors_are_nondeterministic . 0 ,
123+ fds_max_backoff : Duration :: from_secs ( x. fds_max_backoff ) ,
119124 } ;
120125 Ok ( vars)
121126 }
@@ -157,6 +162,8 @@ pub struct InnerMappingHandlers {
157162 disable_declared_calls : EnvVarBoolean ,
158163 #[ envconfig( from = "GRAPH_STORE_ERRORS_ARE_NON_DETERMINISTIC" , default = "false" ) ]
159164 store_errors_are_nondeterministic : EnvVarBoolean ,
165+ #[ envconfig( from = "GRAPH_FDS_MAX_BACKOFF" , default = "600" ) ]
166+ fds_max_backoff : u64 ,
160167}
161168
162169fn validate_ipfs_cache_location ( path : PathBuf ) -> Result < PathBuf , anyhow:: Error > {
0 commit comments