aboutsummaryrefslogtreecommitdiffstats
path: root/mumctl
diff options
context:
space:
mode:
Diffstat (limited to 'mumctl')
-rw-r--r--mumctl/src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs
index 39986f0..4aed39c 100644
--- a/mumctl/src/main.rs
+++ b/mumctl/src/main.rs
@@ -1,4 +1,4 @@
-use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
+use ipc_channel::ipc::{self, IpcSender};
use log::*;
use mumlib::command::{Command, CommandResponse};
use mumlib::setup_logger;
@@ -8,14 +8,13 @@ fn main() {
setup_logger();
debug!("Creating channel");
- let (tx_client, rx_client): (IpcSender<Result<Option<CommandResponse>, ()>>,
- IpcReceiver<Result<Option<CommandResponse>, ()>>) = ipc::channel().unwrap();
+ let (tx_client, rx_client) = ipc::channel::<mumlib::error::Result<Option<CommandResponse>>>().unwrap();
let server_name = fs::read_to_string("/var/tmp/mumd-oneshot").unwrap(); //TODO don't panic
debug!("Connecting to mumd at {}", server_name);
let tx0 = IpcSender::connect(server_name).unwrap();
let connect_command = Command::ServerConnect {
- host: "10.0.0.10".to_string(),
+ host: "icahasse.se".to_string(),
port: 64738u16,
username: "gustav-mumd".to_string(),
accept_invalid_cert: true,