Skip to content

Commit c0151b1

Browse files
committed
F
1 parent 911142d commit c0151b1

File tree

1 file changed

+1
-3
lines changed
  • lib/executor/src/executors

1 file changed

+1
-3
lines changed

lib/executor/src/executors/map.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ impl SubgraphExecutorMap {
131131
.map(|cfg| Arc::new(cfg.clone()))
132132
.unwrap_or_else(|| global_config_arc.clone());
133133

134-
let timeout_config = subgraph_config.and_then(|cfg| cfg.timeout.as_ref());
135-
136134
let mut executor = HTTPSubgraphExecutor::new(
137135
endpoint_uri.clone(),
138136
http_client,
@@ -142,7 +140,7 @@ impl SubgraphExecutorMap {
142140
)
143141
.to_boxed_arc();
144142

145-
if let Some(timeout_config) = timeout_config {
143+
if let Some(timeout_config) = &config_arc.timeout {
146144
executor = TimeoutExecutor::try_new(endpoint_uri, timeout_config, executor)?
147145
.to_boxed_arc();
148146
}

0 commit comments

Comments
 (0)