Skip to content

Commit

Permalink
fix: Set both grpc servers to run on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jan 24, 2024
1 parent 34a92f7 commit 854dcae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion block-streamer/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub async fn init(
delta_lake_client: std::sync::Arc<crate::delta_lake_client::DeltaLakeClient>,
lake_s3_config: aws_sdk_s3::Config,
) -> anyhow::Result<()> {
let addr = format!("[::]:{}", port).parse()?;
let addr = format!("0.0.0.0:{}", port).parse()?;

tracing::info!("Starting RPC server at {}", addr);

Expand Down
4 changes: 2 additions & 2 deletions runner/src/server/runner-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export default function startRunnerServer (executors: Map<string, StreamHandler>
assert(process.env.GRPC_SERVER_PORT, 'GRPC_SERVER_PORT is not defined');

server.bindAsync(
`[::]:${process.env.GRPC_SERVER_PORT}`,
`0.0.0.0:${process.env.GRPC_SERVER_PORT}`,
credentials.createInsecure(), // TODO: Use secure credentials with allow for Coordinator
(err: Error | null, port: number) => {
if (err) {
console.error(`Server error: ${err.message}`);
} else {
console.log(`gRPC server bound on port: ${port}`);
console.log(`gRPC server bound on: 0.0.0.0:${port}`);
server.start();
}
}
Expand Down

0 comments on commit 854dcae

Please sign in to comment.