diff --git a/server/index-node/src/resolver.rs b/server/index-node/src/resolver.rs index 28473781341..5fadd217c2a 100644 --- a/server/index-node/src/resolver.rs +++ b/server/index-node/src/resolver.rs @@ -60,6 +60,7 @@ impl IntoValue for PublicProofOfIndexingResult { } /// Resolver for the index node GraphQL API. +#[derive(Clone)] pub struct IndexNodeResolver { logger: Logger, blockchain_map: Arc, @@ -716,18 +717,6 @@ fn entity_changes_to_graphql(entity_changes: Vec) -> r::Value { } } -impl Clone for IndexNodeResolver { - fn clone(&self) -> Self { - Self { - logger: self.logger.clone(), - blockchain_map: self.blockchain_map.clone(), - store: self.store.clone(), - link_resolver: self.link_resolver.clone(), - bearer_token: self.bearer_token.clone(), - } - } -} - #[async_trait] impl Resolver for IndexNodeResolver { const CACHEABLE: bool = false;