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:: {
@@ -2368,7 +2369,7 @@ async fn fetch_individual_receipts_with_retry(
23682369 }
23692370
23702371 // Use a stream to fetch receipts individually
2371- let hash_stream = graph :: tokio_stream:: iter ( hashes) ;
2372+ let hash_stream = tokio_stream:: iter ( hashes) ;
23722373 let receipt_stream = hash_stream
23732374 . map ( move |tx_hash| {
23742375 fetch_transaction_receipt_with_retry (
@@ -2380,7 +2381,7 @@ async fn fetch_individual_receipts_with_retry(
23802381 } )
23812382 . buffered ( ENV_VARS . block_ingestor_max_concurrent_json_rpc_calls ) ;
23822383
2383- graph :: tokio_stream:: StreamExt :: collect :: < Result < Vec < Arc < TransactionReceipt > > , IngestorError > > (
2384+ tokio_stream:: StreamExt :: collect :: < Result < Vec < Arc < TransactionReceipt > > , IngestorError > > (
23842385 receipt_stream,
23852386 )
23862387 . await
0 commit comments