Commit d031c0f2 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix/cli: make runner has no return

parent a741b450
......@@ -53,11 +53,17 @@ pub fn system() {
// creat runner function to run inside thread spawn
let runner = match controller {
Some(controller) => match controller {
Controllers::Ctrl13 => |addr: &str| Controller13::new().listener(addr),
Controllers::Ctrl10 => |addr: &str| Controller10::new().listener(addr),
Controllers::Ctrl13 => |addr: &str| {
Controller13::new().listener(addr);
},
Controllers::Ctrl10 => |addr: &str| {
Controller10::new().listener(addr);
},
},
// Set Default Controller at here
None => |addr: &str| Controller13::new().listener(addr),
None => |addr: &str| {
Controller13::new().listener(addr);
},
};
// spawn and run threads
let mut thread_list = Vec::new();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment