File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22extern crate diesel;
33
44use crate :: tokio:: runtime:: { Builder , Runtime } ;
5- use diesel:: { Connection , PgConnection } ;
65use graph:: data:: graphql:: effort:: LoadManager ;
76use graph:: log;
87use graph:: prelude:: { Store as _, * } ;
@@ -143,6 +142,8 @@ where
143142
144143#[ cfg( debug_assertions) ]
145144pub fn remove_subgraphs ( ) {
145+ use diesel:: { Connection , PgConnection } ;
146+
146147 let url = postgres_test_url ( ) ;
147148 let conn = PgConnection :: establish ( url. as_str ( ) ) . expect ( "Failed to connect to Postgres" ) ;
148149 graph_store_postgres:: store:: delete_all_entities_for_test_use_only ( & * STORE , & conn)
@@ -264,6 +265,7 @@ pub fn insert_entities(
264265#[ cfg( debug_assertions) ]
265266pub mod block_store {
266267 use diesel:: prelude:: * ;
268+ use diesel:: { Connection , PgConnection } ;
267269 use std:: str:: FromStr ;
268270
269271 use graph:: prelude:: { serde_json, web3:: types:: H256 } ;
You can’t perform that action at this time.
0 commit comments