From a784ffdf5a2234c71ffcf867c386bb7c6b18430a Mon Sep 17 00:00:00 2001 From: David Lutterkort Date: Fri, 26 Mar 2021 07:54:42 -0700 Subject: [PATCH] store: Fix CI failure in release mode --- store/postgres/src/subgraph_store.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/store/postgres/src/subgraph_store.rs b/store/postgres/src/subgraph_store.rs index a4305672fc4..28ddf37fd3c 100644 --- a/store/postgres/src/subgraph_store.rs +++ b/store/postgres/src/subgraph_store.rs @@ -21,10 +21,9 @@ use graph::{ prelude::SubgraphDeploymentEntity, prelude::{ anyhow, futures03::future::join_all, lazy_static, o, web3::types::Address, ApiSchema, - DynTryFuture, Entity, EntityKey, EntityModification, EntityQuery, Error, - EthereumBlockPointer, Logger, NodeId, QueryExecutionError, Schema, StopwatchMetrics, - StoreError, SubgraphDeploymentId, SubgraphName, SubgraphStore as SubgraphStoreTrait, - SubgraphVersionSwitchingMode, + DynTryFuture, Entity, EntityKey, EntityModification, Error, EthereumBlockPointer, Logger, + NodeId, QueryExecutionError, Schema, StopwatchMetrics, StoreError, SubgraphDeploymentId, + SubgraphName, SubgraphStore as SubgraphStoreTrait, SubgraphVersionSwitchingMode, }, util::timed_cache::TimedCache, }; @@ -811,7 +810,10 @@ impl SubgraphStoreInner { // Only used by tests #[cfg(debug_assertions)] - pub fn find(&self, query: EntityQuery) -> Result, QueryExecutionError> { + pub fn find( + &self, + query: graph::prelude::EntityQuery, + ) -> Result, QueryExecutionError> { let (store, site) = self.store(&query.subgraph_id)?; store.find(site, query) }