Why were we wrapping the service in an arc?

This commit is contained in:
Tim Kuehn
2016-02-24 23:25:50 -08:00
parent 03dc512e25
commit c398e2389b

View File

@@ -329,7 +329,7 @@ macro_rules! service_inner {
where T: $crate::transport::Transport,
Self: 'static,
{
let server = ::std::sync::Arc::new(__Server(self));
let server = __Server(self);
let handle = try!($crate::protocol::Serve::spawn_with_config(server, transport, config));
::std::result::Result::Ok(handle)
}