Skip to content

Commit

Permalink
Default to ZMQ IPC sockets for RPC connections
Browse files Browse the repository at this point in the history
Switches the default binding for the ZMQ connections to use ipc://

90% of the time we'll be running these things on the same host. The
option is still there to use tcp:// if not.
  • Loading branch information
rdaum committed Jul 2, 2024
1 parent 702dbb6 commit df84d67
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions crates/console-host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ struct Args {
long,
value_name = "rpc-server",
help = "RPC server address",
default_value = "tcp://0.0.0.0:7899"
default_value = "ipc:///tmp/moor_rpc.sock"
)]
rpc_server: String,

#[arg(
long,
value_name = "narrative-server",
help = "Narrative server address",
default_value = "tcp://0.0.0.0:7898"
default_value = "ipc:///tmp/moor_narrative.sock"
)]
narrative_server: String,

Expand Down
4 changes: 2 additions & 2 deletions crates/daemon/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ struct Args {
long,
value_name = "rpc-listen",
help = "RPC server address",
default_value = "tcp://0.0.0.0:7899"
default_value = "ipc:///tmp/moor_rpc.sock"
)]
rpc_listen: String,

#[arg(
long,
value_name = "narrative-listen",
help = "Narrative server address",
default_value = "tcp://0.0.0.0:7898"
default_value = "ipc:///tmp/moor_narrative.sock"
)]
narrative_listen: String,

Expand Down
4 changes: 2 additions & 2 deletions crates/telnet-host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ struct Args {
long,
value_name = "rpc-server",
help = "RPC server address",
default_value = "tcp://0.0.0.0:7899"
default_value = "ipc:///tmp/moor_rpc.sock"
)]
rpc_server: String,

#[arg(
long,
value_name = "narrative-server",
help = "Narrative server address",
default_value = "tcp://0.0.0.0:7898"
default_value = "ipc:///tmp/moor_narrative.sock"
)]
narrative_server: String,

Expand Down
4 changes: 2 additions & 2 deletions crates/web-host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ struct Args {
long,
value_name = "rpc-server",
help = "RPC server address",
default_value = "tcp://0.0.0.0:7899"
default_value = "ipc:///tmp/moor_rpc.sock"
)]
rpc_server: String,

#[arg(
long,
value_name = "narrative-server",
help = "Narrative server address",
default_value = "tcp://0.0.0.0:7898"
default_value = "ipc:///tmp/moor_narrative.sock"
)]
narrative_server: String,
}
Expand Down

0 comments on commit df84d67

Please sign in to comment.