Skip to content

Commit

Permalink
Update federation version resolution in composition pipeline (#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotdat authored Dec 20, 2024
1 parent 05a2fa2 commit 5e8d272
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/command/dev/next/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use std::io::stdin;

use anyhow::anyhow;
use apollo_federation_types::config::FederationVersion::LatestFedTwo;
use apollo_federation_types::config::RouterVersion;
use camino::Utf8PathBuf;
use futures::StreamExt;
Expand Down Expand Up @@ -96,11 +95,7 @@ impl Dev {
.resolve_federation_version(
&client_config,
make_fetch_remote_subgraph,
self.opts
.supergraph_opts
.federation_version
.clone()
.or(Some(LatestFedTwo)),
self.opts.supergraph_opts.federation_version.clone(),
)
.await?
.install_supergraph_binary(
Expand Down Expand Up @@ -155,7 +150,7 @@ impl Dev {
.await?
.load_remote_config(service, graph_ref.clone(), Some(credential))
.await;
let router_address = run_router.state.config.address().clone();
let router_address = *run_router.state.config.address();
let mut run_router = run_router
.run(
FsWriteFile::default(),
Expand Down

0 comments on commit 5e8d272

Please sign in to comment.