@@ -13,7 +13,7 @@ use graph::blockchain::block_stream::{
13
13
} ;
14
14
use graph:: blockchain:: { Block , BlockPtr , TriggerFilterWrapper } ;
15
15
use 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 } ;
17
17
use graph:: slog:: { debug, info, trace, warn, Logger } ;
18
18
19
19
use graph:: components:: store:: BlockNumber ;
@@ -73,7 +73,6 @@ enum ReconciliationStep {
73
73
}
74
74
75
75
struct PollingBlockStreamContext {
76
- chain_store : Arc < dyn ChainStore > ,
77
76
adapter : Arc < TriggersAdapterWrapper < Chain > > ,
78
77
node_id : NodeId ,
79
78
subgraph_id : DeploymentHash ,
@@ -96,7 +95,6 @@ struct PollingBlockStreamContext {
96
95
impl Clone for PollingBlockStreamContext {
97
96
fn clone ( & self ) -> Self {
98
97
Self {
99
- chain_store : self . chain_store . cheap_clone ( ) ,
100
98
adapter : self . adapter . clone ( ) ,
101
99
node_id : self . node_id . clone ( ) ,
102
100
subgraph_id : self . subgraph_id . clone ( ) ,
@@ -133,7 +131,6 @@ enum NextBlocks {
133
131
134
132
impl PollingBlockStream {
135
133
pub fn new (
136
- chain_store : Arc < dyn ChainStore > ,
137
134
chain_head_update_stream : ChainHeadUpdateStream ,
138
135
adapter : Arc < TriggersAdapterWrapper < Chain > > ,
139
136
node_id : NodeId ,
@@ -153,7 +150,6 @@ impl PollingBlockStream {
153
150
chain_head_update_stream,
154
151
ctx : PollingBlockStreamContext {
155
152
current_block : start_block,
156
- chain_store,
157
153
adapter,
158
154
node_id,
159
155
subgraph_id,
0 commit comments