From 7500e7f22ac2920a6d83d2183c2779c015b70ca6 Mon Sep 17 00:00:00 2001 From: asr2003 <162500856+asr2003@users.noreply.github.com> Date: Sat, 14 Dec 2024 10:44:17 +0530 Subject: [PATCH] Update grpc_store.rs --- nativelink-store/src/grpc_store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nativelink-store/src/grpc_store.rs b/nativelink-store/src/grpc_store.rs index 290b2b80d..5a0dbd9ba 100644 --- a/nativelink-store/src/grpc_store.rs +++ b/nativelink-store/src/grpc_store.rs @@ -243,7 +243,7 @@ impl GrpcStore { fn get_read_request(&self, mut request: ReadRequest) -> Result { const IS_UPLOAD_FALSE: bool = false; - let resource_info = ResourceInfo::new(&request.resource_name, IS_UPLOAD_FALSE)?; + let mut resource_info = ResourceInfo::new(&request.resource_name, IS_UPLOAD_FALSE)?; if resource_info.instance_name != self.instance_name { resource_info.instance_name = Cow::Borrowed(&self.instance_name); request.resource_name = resource_info.to_string(IS_UPLOAD_FALSE); @@ -280,7 +280,7 @@ impl GrpcStore { let request = self.get_read_request(grpc_request.into_request().into_inner())?; let resource_name = &request.resource_name; - let mut resource_info = ResourceInfo::new(resource_name, IS_UPLOAD_FALSE) + let resource_info = ResourceInfo::new(resource_name, IS_UPLOAD_FALSE) .err_tip(|| "Failed to parse resource_name in GrpcStore::read")?; let digest_function = resource_info.digest_function.as_deref().unwrap_or("sha256");