Skip to content

Commit

Permalink
Update to use latest ttrpc library
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <jstur@microsoft.com>
  • Loading branch information
jsturtevant committed Jun 22, 2023
1 parent 38545a7 commit bdd17eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/shim-protos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ homepage.workspace = true

[dependencies]
protobuf = "3.1"
ttrpc = { git = "https://github.com/jsturtevant/ttrpc-rust", rev = "d96bea3a41b6c6b85c1d8da53e5085fb0789a685" } # unmerged pr https://github.com/containerd/ttrpc-rust/pull/182
ttrpc = "0.8.0"
async-trait = { version = "0.1.48", optional = true }

[build-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion crates/shim/src/synchronous/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ fn signal_server_started() {
unsafe {
let std_out = GetStdHandle(STD_OUTPUT_HANDLE);

for handle in [std_out] {
{
let handle = std_out;
CloseHandle(handle);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/shim/src/synchronous/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl RemotePublisher {
{
let fd = connect(address)?;
// Client::new() takes ownership of the RawFd.
Ok(Client::new_from_fd(fd)?)
Client::new(fd).map_err(|err| err.into())
}

#[cfg(windows)]
Expand Down Expand Up @@ -167,7 +167,7 @@ mod tests {
thread.join().unwrap();
}

fn create_server(server_address: &String) -> Server {
fn create_server(server_address: &str) -> Server {
#[cfg(unix)]
{
use std::os::unix::{io::AsRawFd, net::UnixListener};
Expand Down

0 comments on commit bdd17eb

Please sign in to comment.