mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Make SyncClient only require &self for RPCs.
This commit is contained in:
@@ -80,7 +80,7 @@ fn main() {
|
||||
let double = DoubleServer::new(add_client);
|
||||
let double_addr = double.listen("localhost:0".first_socket_addr()).wait().unwrap();
|
||||
|
||||
let mut double_client = double::SyncClient::connect(&double_addr).unwrap();
|
||||
let double_client = double::SyncClient::connect(&double_addr).unwrap();
|
||||
for i in 0..5 {
|
||||
println!("{:?}", double_client.double(i).unwrap());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user