77 keeper:: process_event:: process_event_with_backoff,
88 } ,
99 anyhow:: Result ,
10- ethers:: types:: U256 ,
1110 std:: { collections:: HashSet , sync:: Arc } ,
1211 tokio:: {
1312 spawn,
@@ -62,7 +61,6 @@ pub async fn get_latest_safe_block(chain_state: &BlockchainState) -> BlockNumber
6261pub async fn process_block_range (
6362 block_range : BlockRange ,
6463 contract : Arc < InstrumentedSignablePythContract > ,
65- gas_limit : U256 ,
6664 escalation_policy : EscalationPolicy ,
6765 chain_state : api:: BlockchainState ,
6866 metrics : Arc < KeeperMetrics > ,
@@ -86,7 +84,6 @@ pub async fn process_block_range(
8684 to : to_block,
8785 } ,
8886 contract. clone ( ) ,
89- gas_limit,
9087 escalation_policy. clone ( ) ,
9188 chain_state. clone ( ) ,
9289 metrics. clone ( ) ,
@@ -109,7 +106,6 @@ pub async fn process_block_range(
109106pub async fn process_single_block_batch (
110107 block_range : BlockRange ,
111108 contract : Arc < InstrumentedSignablePythContract > ,
112- gas_limit : U256 ,
113109 escalation_policy : EscalationPolicy ,
114110 chain_state : api:: BlockchainState ,
115111 metrics : Arc < KeeperMetrics > ,
@@ -140,7 +136,6 @@ pub async fn process_single_block_batch(
140136 event. clone ( ) ,
141137 chain_state. clone ( ) ,
142138 contract. clone ( ) ,
143- gas_limit,
144139 escalation_policy. clone ( ) ,
145140 metrics. clone ( ) ,
146141 )
@@ -251,7 +246,6 @@ pub async fn process_new_blocks(
251246 chain_state : BlockchainState ,
252247 mut rx : mpsc:: Receiver < BlockRange > ,
253248 contract : Arc < InstrumentedSignablePythContract > ,
254- gas_limit : U256 ,
255249 escalation_policy : EscalationPolicy ,
256250 metrics : Arc < KeeperMetrics > ,
257251 fulfilled_requests_cache : Arc < RwLock < HashSet < u64 > > > ,
@@ -264,7 +258,6 @@ pub async fn process_new_blocks(
264258 process_block_range (
265259 block_range. clone ( ) ,
266260 Arc :: clone ( & contract) ,
267- gas_limit,
268261 escalation_policy. clone ( ) ,
269262 chain_state. clone ( ) ,
270263 metrics. clone ( ) ,
@@ -282,7 +275,6 @@ pub async fn process_new_blocks(
282275 process_block_range (
283276 adjusted_range,
284277 Arc :: clone ( & contract) ,
285- gas_limit,
286278 escalation_policy. clone ( ) ,
287279 chain_state. clone ( ) ,
288280 metrics. clone ( ) ,
@@ -302,7 +294,6 @@ pub async fn process_new_blocks(
302294pub async fn process_backlog (
303295 backlog_range : BlockRange ,
304296 contract : Arc < InstrumentedSignablePythContract > ,
305- gas_limit : U256 ,
306297 escalation_policy : EscalationPolicy ,
307298 chain_state : BlockchainState ,
308299 metrics : Arc < KeeperMetrics > ,
@@ -314,7 +305,6 @@ pub async fn process_backlog(
314305 process_block_range (
315306 backlog_range. clone ( ) ,
316307 Arc :: clone ( & contract) ,
317- gas_limit,
318308 escalation_policy. clone ( ) ,
319309 chain_state. clone ( ) ,
320310 metrics. clone ( ) ,
@@ -332,7 +322,6 @@ pub async fn process_backlog(
332322 process_block_range (
333323 adjusted_range,
334324 Arc :: clone ( & contract) ,
335- gas_limit,
336325 escalation_policy. clone ( ) ,
337326 chain_state. clone ( ) ,
338327 metrics. clone ( ) ,
0 commit comments