Skip to content

Commit

Permalink
Randomise tokio console port in LCR (restatedev#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman authored Nov 1, 2024
1 parent cf92f26 commit 27377d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/local-cluster-runner/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,12 @@ impl Node {
&mut cmd
}
.env("RESTATE_CONFIG", node_config_file)
.env("TOKIO_CONSOLE_BIND", "127.0.0.1:0")
.env(
"TOKIO_CONSOLE_BIND",
random_socket_address()
.expect("to find a random port for tokio console")
.to_string(),
)
.envs(env)
.stdin(Stdio::null())
.stdout(Stdio::piped())
Expand Down

0 comments on commit 27377d9

Please sign in to comment.