chore(tvix): upgrade to tonic 0.12 / hyper 1.0
Change-Id: Idd8ce48869ddd869d51a10959b920f1290a8a9b3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11991 Autosubmit: yuka <yuka@yuka.dev> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
1515a970be
commit
ca8e2b9fbf
15 changed files with 1840 additions and 751 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use hyper_util::rt::TokioIo;
|
||||
use tokio::net::UnixStream;
|
||||
use tonic::transport::{Channel, Endpoint};
|
||||
|
||||
|
|
@ -25,7 +26,10 @@ pub async fn channel_from_url(url: &url::Url) -> Result<Channel, self::Error> {
|
|||
|
||||
let connector = tower::service_fn({
|
||||
let url = url.clone();
|
||||
move |_: tonic::transport::Uri| UnixStream::connect(url.path().to_string().clone())
|
||||
move |_: tonic::transport::Uri| {
|
||||
let unix = UnixStream::connect(url.path().to_string().clone());
|
||||
async move { Ok::<_, std::io::Error>(TokioIo::new(unix.await?)) }
|
||||
}
|
||||
});
|
||||
|
||||
// the URL doesn't matter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue