diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-15 22:09:57 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-15 22:09:57 +0200 |
| commit | cfc0ab78a893d6a16d2eedfef290c9e1496a23e1 (patch) | |
| tree | 0ed06065cb937af22ad48a14d49dd1b0035a90b2 /mumctl/src/main.rs | |
| parent | 01b3c75420ec5bf9083dbcf643d3c6087d4f2ce7 (diff) | |
| download | mum-cfc0ab78a893d6a16d2eedfef290c9e1496a23e1.tar.gz | |
add basic error messaging on mumd
Diffstat (limited to 'mumctl/src/main.rs')
| -rw-r--r-- | mumctl/src/main.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs index 403447f..9bb96a8 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; @@ -10,14 +10,13 @@ fn main() { // MUMCTL //temp send command and channel to listener 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, |
