rust(refactor): dispatch on calling thread instead of spawned thread
@@ -66,8 +66,8 @@ pub mod router {
Some(r) => {
handler_ref = Arc::clone(r);
match handler_ref.lock().unwrap().message_handler(m, address) {
- Ok(()) => { Ok(()) },
- Err(s) => { Err("message_handler failed".to_string()) },
+ Ok(()) => Ok(()),
+ Err(s) => Err("message_handler failed".to_string()),
}
}
None => Err("key not found".to_string()),
