mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-11 05:51:54 +01:00
Why were we wrapping the service in an arc?
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user