@@ -37,7 +37,7 @@ use graph::{
3737 } ,
3838} ;
3939use prost:: Message ;
40- use std:: collections:: HashSet ;
40+ use std:: collections:: { HashMap , HashSet } ;
4141use std:: iter:: FromIterator ;
4242use std:: sync:: Arc ;
4343use std:: time:: Duration ;
@@ -128,7 +128,7 @@ impl BlockStreamBuilder<Chain> for EthereumStreamBuilder {
128128 chain : & Chain ,
129129 deployment : DeploymentLocator ,
130130 start_blocks : Vec < BlockNumber > ,
131- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn WritableStore > ) > ,
131+ source_subgraph_stores : HashMap < DeploymentHash , Arc < dyn WritableStore > > ,
132132 subgraph_current_block : Option < BlockPtr > ,
133133 filter : Arc < TriggerFilterWrapper < Chain > > ,
134134 unified_api_version : UnifiedMappingApiVersion ,
@@ -150,7 +150,7 @@ impl BlockStreamBuilder<Chain> for EthereumStreamBuilder {
150150 chain : & Chain ,
151151 deployment : DeploymentLocator ,
152152 start_blocks : Vec < BlockNumber > ,
153- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn WritableStore > ) > ,
153+ source_subgraph_stores : HashMap < DeploymentHash , Arc < dyn WritableStore > > ,
154154 subgraph_current_block : Option < BlockPtr > ,
155155 filter : Arc < TriggerFilterWrapper < Chain > > ,
156156 unified_api_version : UnifiedMappingApiVersion ,
@@ -437,7 +437,7 @@ impl Blockchain for Chain {
437437 deployment : DeploymentLocator ,
438438 store : impl DeploymentCursorTracker ,
439439 start_blocks : Vec < BlockNumber > ,
440- source_subgraph_stores : Vec < ( DeploymentHash , Arc < dyn WritableStore > ) > ,
440+ source_subgraph_stores : HashMap < DeploymentHash , Arc < dyn WritableStore > > ,
441441 filter : Arc < TriggerFilterWrapper < Self > > ,
442442 unified_api_version : UnifiedMappingApiVersion ,
443443 ) -> Result < Box < dyn BlockStream < Self > > , Error > {
0 commit comments