Skip to content

Commit

Permalink
ipfs: Don't retry ipfs.cat forever
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Jun 22, 2021
1 parent fe59006 commit 7fb2b88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/subgraph/instance_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ where
let logger = logger_factory.component_logger("SubgraphInstanceManager", None);
let logger_factory = logger_factory.with_parent(logger.clone());

let link_resolver = Arc::new(link_resolver.as_ref().clone().with_retries());

SubgraphInstanceManager {
logger_factory,
subgraph_store,
Expand Down Expand Up @@ -316,7 +314,8 @@ where
let mut manifest = SubgraphManifest::resolve_from_raw(
deployment.hash.cheap_clone(),
manifest,
&*link_resolver,
// Allow for infinite retries for subgraph definition files.
&link_resolver.as_ref().clone().with_retries(),
&logger,
)
.await
Expand Down

0 comments on commit 7fb2b88

Please sign in to comment.