11use async_trait:: async_trait;
22use futures03:: { future:: BoxFuture , stream:: FuturesUnordered } ;
3+ use tokio:: sync:: RwLock ;
4+ use tokio:: time:: timeout;
5+
36use graph:: blockchain:: client:: ChainClient ;
47use graph:: blockchain:: BlockHash ;
58use graph:: blockchain:: ChainIdentifier ;
@@ -23,8 +26,6 @@ use graph::prelude::ethabi::Token;
2326use graph:: prelude:: tokio:: try_join;
2427use graph:: prelude:: web3:: types:: U256 ;
2528use graph:: slog:: o;
26- use graph:: tokio:: sync:: RwLock ;
27- use graph:: tokio:: time:: timeout;
2829use graph:: {
2930 blockchain:: { block_stream:: BlockWithTriggers , BlockPtr , IngestorError } ,
3031 prelude:: {
@@ -2352,7 +2353,7 @@ async fn fetch_individual_receipts_with_retry(
23522353 }
23532354
23542355 // Use a stream to fetch receipts individually
2355- let hash_stream = graph :: tokio_stream:: iter ( hashes) ;
2356+ let hash_stream = tokio_stream:: iter ( hashes) ;
23562357 let receipt_stream = hash_stream
23572358 . map ( move |tx_hash| {
23582359 fetch_transaction_receipt_with_retry (
@@ -2364,7 +2365,7 @@ async fn fetch_individual_receipts_with_retry(
23642365 } )
23652366 . buffered ( ENV_VARS . block_ingestor_max_concurrent_json_rpc_calls ) ;
23662367
2367- graph :: tokio_stream:: StreamExt :: collect :: < Result < Vec < Arc < TransactionReceipt > > , IngestorError > > (
2368+ tokio_stream:: StreamExt :: collect :: < Result < Vec < Arc < TransactionReceipt > > , IngestorError > > (
23682369 receipt_stream,
23692370 )
23702371 . await
0 commit comments