@@ -13,7 +13,7 @@ use graph::blockchain::block_stream::{
1313} ;
1414use graph:: blockchain:: { Block , BlockPtr , TriggerFilterWrapper } ;
1515use graph:: futures03:: { stream:: Stream , Future , FutureExt } ;
16- use graph:: prelude:: { ChainStore , CheapClone , DeploymentHash , NodeId , BLOCK_NUMBER_MAX } ;
16+ use graph:: prelude:: { DeploymentHash , NodeId , BLOCK_NUMBER_MAX } ;
1717use graph:: slog:: { debug, info, trace, warn, Logger } ;
1818
1919use graph:: components:: store:: BlockNumber ;
@@ -73,7 +73,6 @@ enum ReconciliationStep {
7373}
7474
7575struct PollingBlockStreamContext {
76- chain_store : Arc < dyn ChainStore > ,
7776 adapter : Arc < TriggersAdapterWrapper < Chain > > ,
7877 node_id : NodeId ,
7978 subgraph_id : DeploymentHash ,
@@ -96,7 +95,6 @@ struct PollingBlockStreamContext {
9695impl Clone for PollingBlockStreamContext {
9796 fn clone ( & self ) -> Self {
9897 Self {
99- chain_store : self . chain_store . cheap_clone ( ) ,
10098 adapter : self . adapter . clone ( ) ,
10199 node_id : self . node_id . clone ( ) ,
102100 subgraph_id : self . subgraph_id . clone ( ) ,
@@ -133,7 +131,6 @@ enum NextBlocks {
133131
134132impl PollingBlockStream {
135133 pub fn new (
136- chain_store : Arc < dyn ChainStore > ,
137134 chain_head_update_stream : ChainHeadUpdateStream ,
138135 adapter : Arc < TriggersAdapterWrapper < Chain > > ,
139136 node_id : NodeId ,
@@ -153,7 +150,6 @@ impl PollingBlockStream {
153150 chain_head_update_stream,
154151 ctx : PollingBlockStreamContext {
155152 current_block : start_block,
156- chain_store,
157153 adapter,
158154 node_id,
159155 subgraph_id,
0 commit comments