Skip to content

Commit

Permalink
store: Fix CI failure in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lutter committed Mar 26, 2021
1 parent b9ebf4d commit a784ffd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions store/postgres/src/subgraph_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -811,7 +810,10 @@ impl SubgraphStoreInner {

// Only used by tests
#[cfg(debug_assertions)]
pub fn find(&self, query: EntityQuery) -> Result<Vec<Entity>, QueryExecutionError> {
pub fn find(
&self,
query: graph::prelude::EntityQuery,
) -> Result<Vec<Entity>, QueryExecutionError> {
let (store, site) = self.store(&query.subgraph_id)?;
store.find(site, query)
}
Expand Down

0 comments on commit a784ffd

Please sign in to comment.