@@ -240,6 +240,13 @@ pub struct EnvVars {
240240 pub firehose_disable_extended_blocks_for_chains : Vec < String > ,
241241
242242 pub block_write_capacity : usize ,
243+
244+ /// Set by the environment variable `GRAPH_FIREHOSE_FETCH_BLOCK_RETRY_LIMIT`.
245+ /// The default value is 10.
246+ pub firehose_block_fetch_retry_limit : usize ,
247+ /// Set by the environment variable `GRAPH_FIREHOSE_FETCH_BLOCK_TIMEOUT_SECS`.
248+ /// The default value is 60 seconds.
249+ pub firehose_block_fetch_timeout : u64 ,
243250}
244251
245252impl EnvVars {
@@ -330,6 +337,8 @@ impl EnvVars {
330337 inner. firehose_disable_extended_blocks_for_chains ,
331338 ) ,
332339 block_write_capacity : inner. block_write_capacity . 0 ,
340+ firehose_block_fetch_retry_limit : inner. firehose_block_fetch_retry_limit ,
341+ firehose_block_fetch_timeout : inner. firehose_block_fetch_timeout ,
333342 } )
334343 }
335344
@@ -493,6 +502,10 @@ struct Inner {
493502 firehose_disable_extended_blocks_for_chains : Option < String > ,
494503 #[ envconfig( from = "GRAPH_NODE_BLOCK_WRITE_CAPACITY" , default = "4_000_000_000" ) ]
495504 block_write_capacity : NoUnderscores < usize > ,
505+ #[ envconfig( from = "GRAPH_FIREHOSE_FETCH_BLOCK_RETRY_LIMIT" , default = "10" ) ]
506+ firehose_block_fetch_retry_limit : usize ,
507+ #[ envconfig( from = "GRAPH_FIREHOSE_FETCH_BLOCK_TIMEOUT_SECS" , default = "60" ) ]
508+ firehose_block_fetch_timeout : u64 ,
496509}
497510
498511#[ derive( Clone , Debug ) ]
0 commit comments