Skip to content

Commit

Permalink
Pass local address host so we do not get mismatch between IPv4 and IP… (
Browse files Browse the repository at this point in the history
#1466)

* Pass local address host so we do not get mismatch between IPv4 and IPv6 addresses
  • Loading branch information
thinkharderdev authored Dec 22, 2021
1 parent 5668be7 commit ecfc7d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ballista/rust/executor/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use std::sync::Arc;
use arrow_flight::flight_service_server::FlightServiceServer;
use ballista_core::{
error::Result,
serde::protobuf::executor_registration::OptionalHost,
serde::protobuf::{scheduler_grpc_client::SchedulerGrpcClient, ExecutorRegistration},
BALLISTA_VERSION,
};
Expand Down Expand Up @@ -59,7 +60,7 @@ pub async fn new_standalone_executor(
);
let executor_meta = ExecutorRegistration {
id: Uuid::new_v4().to_string(), // assign this executor a unique ID
optional_host: None,
optional_host: Some(OptionalHost::Host("localhost".to_string())),
port: addr.port() as u32,
};
tokio::spawn(execution_loop::poll_loop(
Expand Down

0 comments on commit ecfc7d8

Please sign in to comment.