Skip to content

Commit

Permalink
Default fed version to 1 (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-apollo committed Sep 26, 2024
1 parent 7a30b10 commit 483ce42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/federation/supergraph_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fn resolve_federation_version(
requested_federation_version.unwrap_or_else(|| {
supergraph_config
.get_federation_version()
.unwrap_or_else(|| FederationVersion::LatestFedTwo)
.unwrap_or_default()
})
}

Expand Down Expand Up @@ -422,7 +422,7 @@ mod test_get_supergraph_config {
}

#[rstest]
#[case::no_supplied_fed_version(None, None, FederationVersion::LatestFedTwo)]
#[case::no_supplied_fed_version(None, None, FederationVersion::LatestFedOne)]
#[case::using_supergraph_yaml_version(
None,
Some(FederationVersion::LatestFedOne),
Expand Down

0 comments on commit 483ce42

Please sign in to comment.