From c5851fb81548f4bf8b50bf489e85b52d19528c81 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 15 Jun 2023 00:00:39 +0300 Subject: refactor(tvix/store/blobsvc): make from_addr not async A previous iteration of this code did actually connect (in the gRPC client), which was why we had this function async. However, as the connection there is now lazy too, we can drop the asyncness in this function. Change-Id: Idd5bd953a6a1c2334066ee672cfb87fcb74f9f94 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8780 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/store/src/blobservice/from_addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/store/src/blobservice/from_addr.rs') diff --git a/tvix/store/src/blobservice/from_addr.rs b/tvix/store/src/blobservice/from_addr.rs index 761498041d9b..914e590033bb 100644 --- a/tvix/store/src/blobservice/from_addr.rs +++ b/tvix/store/src/blobservice/from_addr.rs @@ -11,7 +11,7 @@ use super::{BlobService, GRPCBlobService, MemoryBlobService, SledBlobService}; /// - `grpc+*://` ([GRPCBlobService]) /// /// See their [from_url] methods for more details about their syntax. -pub async fn from_addr(uri: &str) -> Result, crate::Error> { +pub fn from_addr(uri: &str) -> Result, crate::Error> { let url = Url::parse(uri).map_err(|e| { crate::Error::StorageError(format!("unable to parse url: {}", e.to_string())) })?; -- cgit 1.4.1