Skip to content

Commit

Permalink
refactor: rename coordinator listen port configuration to addr
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed Apr 17, 2024
1 parent a9bfafd commit 431d72c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binaries/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ enum Command {
#[clap(long, default_value_t = SocketAddr::new(
IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), DORA_COORDINATOR_PORT_DEFAULT)
)]
bind: SocketAddr,
addr: SocketAddr,
},
}

Expand Down Expand Up @@ -279,14 +279,14 @@ fn run() -> eyre::Result<()> {
}
}
Command::Destroy { config } => up::destroy(config.as_deref())?,
Command::Coordinator { bind } => {
Command::Coordinator { addr } => {
let rt = Builder::new_multi_thread()
.enable_all()
.build()
.context("tokio runtime failed")?;
rt.block_on(async {
let (_port, task) =
dora_coordinator::start(bind, futures::stream::empty::<Event>()).await?;
dora_coordinator::start(addr, futures::stream::empty::<Event>()).await?;
task.await
})
.context("failed to run dora-coordinator")?
Expand Down

0 comments on commit 431d72c

Please sign in to comment.