Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffroy Couprie committed Jul 19, 2022
1 parent adce0aa commit c1b44e9
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions apollo-router/src/query_planner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,29 +595,7 @@ impl PlanNode {
service_factory,
schema,
originating_request.clone(),
&parent_value,
deferred_fetches,
sender.clone(),
options,
)
.instrument(span.clone())
.in_current_span()
.await;
value.deep_merge(v);
errors.extend(err.into_iter());
subselection = subselect;
}
} else {
if let Some(node) = else_clause {
let span = tracing::info_span!("condition_else");
let (v, subselect, err) = node
.execute_recursively(
current_dir,
context,
service_factory,
schema,
originating_request.clone(),
&parent_value,
parent_value,
deferred_fetches,
sender.clone(),
options,
Expand All @@ -629,6 +607,26 @@ impl PlanNode {
errors.extend(err.into_iter());
subselection = subselect;
}
} else if let Some(node) = else_clause {
let span = tracing::info_span!("condition_else");
let (v, subselect, err) = node
.execute_recursively(
current_dir,
context,
service_factory,
schema,
originating_request.clone(),
parent_value,
deferred_fetches,
sender.clone(),
options,
)
.instrument(span.clone())
.in_current_span()
.await;
value.deep_merge(v);
errors.extend(err.into_iter());
subselection = subselect;
}
}
}
Expand Down

0 comments on commit c1b44e9

Please sign in to comment.