refactor(tvix/castore/tonic): make async, support wait-connect=?
This moves the sync `channel::from_url` to a async `tonic::channel_from_url`. It now allows connecting non-lazily if `wait- connect=1` is set in the URL params. Also, make the pingpong tests for blobsvc and directorysvc use the wait- connect=1 codepath. Change-Id: Ibeea33117c8121814627e7f6aba0e943ae2e92ca Reviewed-on: https://cl.tvl.fyi/c/depot/+/10030 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
parent
c83841d3a1
commit
30e0c32066
11 changed files with 170 additions and 182 deletions
|
|
@ -34,8 +34,8 @@ impl From<Error> for Status {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<crate::channel::Error> for Error {
|
||||
fn from(value: crate::channel::Error) -> Self {
|
||||
impl From<crate::tonic::Error> for Error {
|
||||
fn from(value: crate::tonic::Error) -> Self {
|
||||
Self::StorageError(value.to_string())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue