got rid of Arc<T> dispatch

This commit is contained in:
NikVolf
2016-07-16 19:09:14 +02:00
parent 8e26977693
commit 77bbab009e
7 changed files with 12 additions and 13 deletions

View File

@@ -92,7 +92,7 @@ impl Args {
}
}
fn run_service<T: ?Sized + Send + Sync + 'static>(addr: &str, stop_guard: Arc<AtomicBool>, service: Arc<T>) where Arc<T>: IpcInterface<T> {
fn run_service<T: ?Sized + Send + Sync + 'static>(addr: &str, stop_guard: Arc<AtomicBool>, service: Arc<T>) where T: IpcInterface<T> {
let socket_url = addr.to_owned();
std::thread::spawn(move || {
let mut worker = nanoipc::Worker::<T>::new(&service);