mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-18 09:14:20 +01:00
Simplify lib.rs example
This commit is contained in:
@@ -30,8 +30,7 @@
|
||||
//! }
|
||||
//!
|
||||
//! fn main() {
|
||||
//! let addr = "127.0.0.1:9000";
|
||||
//! let serve_handle = Server.spawn(addr).unwrap();
|
||||
//! let serve_handle = Server.spawn("localhost:0").unwrap();
|
||||
//! let client = Client::new(serve_handle.dialer()).unwrap();
|
||||
//! assert_eq!(3, client.add(1, 2).unwrap());
|
||||
//! assert_eq!("Hello, Mom!".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user