mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-06 11:34:39 +01:00
Use real crate names rather than internal aliases. It's less confusing for people reading examples.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user