mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Update Cargo.toml to use crates.io releases of tokio deps.
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
//! struct HelloServer;
|
||||
//!
|
||||
//! impl SyncService for HelloServer {
|
||||
//! fn hello(&mut self, name: String) -> Result<String, Never> {
|
||||
//! fn hello(&self, name: String) -> Result<String, Never> {
|
||||
//! Ok(format!("Hello, {}!", name))
|
||||
//! }
|
||||
//! }
|
||||
@@ -53,7 +53,7 @@
|
||||
//! fn main() {
|
||||
//! let addr = "localhost:10000";
|
||||
//! let _server = HelloServer.listen(addr);
|
||||
//! let mut client = SyncClient::connect(addr).unwrap();
|
||||
//! let client = SyncClient::connect(addr).unwrap();
|
||||
//! println!("{}", client.hello("Mom".to_string()).unwrap());
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
Reference in New Issue
Block a user