Skip to content

Commit 5024a3c

Browse files
committed
core: Use retrying link resolver to load subgraph files (#1239)
1 parent 183aee0 commit 5024a3c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/subgraph/provider.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ where
4949
resolver
5050
.as_ref()
5151
.clone()
52-
.with_timeout(*IPFS_SUBGRAPH_LOADING_TIMEOUT),
52+
.with_timeout(*IPFS_SUBGRAPH_LOADING_TIMEOUT)
53+
.with_retries(),
5354
),
5455
subgraphs_running: Arc::new(Mutex::new(HashSet::new())),
5556
store,

core/src/subgraph/registrar.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ where
6363
resolver
6464
.as_ref()
6565
.clone()
66-
.with_timeout(*IPFS_SUBGRAPH_LOADING_TIMEOUT),
66+
.with_timeout(*IPFS_SUBGRAPH_LOADING_TIMEOUT)
67+
.with_retries(),
6768
),
6869
provider,
6970
store,

0 commit comments

Comments
 (0)