Use real crate names rather than internal aliases. It's less confusing for people reading examples.

This commit is contained in:
Tim Kuehn
2019-08-09 01:16:06 -07:00
parent d560ac6197
commit f974533bf7
8 changed files with 18 additions and 18 deletions

View File

@@ -42,7 +42,7 @@ async fn main() -> io::Result<()> {
let name = flags.value_of("name").unwrap().into();
let transport = json_transport::connect(&server_addr).await?;
let transport = tarpc_json_transport::connect(&server_addr).await?;
// WorldClient is generated by the service attribute. It has a constructor `new` that takes a
// config and any Transport as input.

View File

@@ -65,7 +65,7 @@ async fn main() -> io::Result<()> {
// bincode_transport is provided by the associated crate bincode-transport. It makes it easy
// to start up a serde-powered bincode serialization strategy over TCP.
json_transport::listen(&server_addr)?
tarpc_json_transport::listen(&server_addr)?
// Ignore accept errors.
.filter_map(|r| future::ready(r.ok()))
.map(server::BaseChannel::with_defaults)