Skip to content

Commit

Permalink
fix: Include graft ipfs lookup for raw_yaml in infinite retries (#4284)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens authored Jan 6, 2023
1 parent 3112936 commit 3145726
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/subgraph/instance_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ impl<S: SubgraphStore> SubgraphInstanceManager<S> {
let raw_yaml = serde_yaml::to_string(&manifest).unwrap();
let manifest = UnresolvedSubgraphManifest::parse(deployment.hash.cheap_clone(), manifest)?;

// Allow for infinite retries for subgraph definition files.
let link_resolver = Arc::from(self.link_resolver.with_retries());

// Make sure the `raw_yaml` is present on both this subgraph and the graft base.
self.subgraph_store
.set_manifest_raw_yaml(&deployment.hash, raw_yaml)
Expand All @@ -236,8 +239,6 @@ impl<S: SubgraphStore> SubgraphInstanceManager<S> {

info!(logger, "Resolve subgraph files using IPFS");

// Allow for infinite retries for subgraph definition files.
let link_resolver = Arc::from(self.link_resolver.with_retries());
let mut manifest = manifest
.resolve(&link_resolver, &logger, ENV_VARS.max_spec_version.clone())
.await?;
Expand Down

0 comments on commit 3145726

Please sign in to comment.