From 128337af8f5dea5079de634a025a7310f2b5e7af Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Fri, 23 Jun 2023 20:40:53 +0000 Subject: [PATCH] update ttrpc to 0.8.0 Update ttrpc to 0.8.0 Signed-off-by: James Sturtevant --- crates/shim-protos/Cargo.toml | 2 +- crates/shim/src/synchronous/publisher.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/shim-protos/Cargo.toml b/crates/shim-protos/Cargo.toml index 4270b8a7..06c8978a 100644 --- a/crates/shim-protos/Cargo.toml +++ b/crates/shim-protos/Cargo.toml @@ -13,7 +13,7 @@ homepage.workspace = true [dependencies] protobuf = "3.1" -ttrpc = "0.7" +ttrpc = "0.8" async-trait = { version = "0.1.48", optional = true } [build-dependencies] diff --git a/crates/shim/src/synchronous/publisher.rs b/crates/shim/src/synchronous/publisher.rs index 459901ca..f7fea478 100644 --- a/crates/shim/src/synchronous/publisher.rs +++ b/crates/shim/src/synchronous/publisher.rs @@ -50,7 +50,7 @@ impl RemotePublisher { fn connect(address: impl AsRef) -> Result { let fd = connect(address)?; // Client::new() takes ownership of the RawFd. - Ok(Client::new(fd)) + Client::new(fd).map_err(|err| err.into()) } /// Publish a new event.