aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java b/src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java
index f0bc22b7b8..377c50d091 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/GrpcRemoteCache.java
@@ -185,7 +185,7 @@ public class GrpcRemoteCache extends AbstractRemoteActionCache {
if (!options.remoteInstanceName.isEmpty()) {
resourceName += options.remoteInstanceName + "/";
}
- resourceName += "blobs/" + digest.getHash() + "/" + digest.getSizeBytes();
+ resourceName += "blobs/" + digestUtil.toString(digest);
Iterator<ReadResponse> replies = bsBlockingStub()
.read(ReadRequest.newBuilder().setResourceName(resourceName).build());
while (replies.hasNext()) {
@@ -205,7 +205,7 @@ public class GrpcRemoteCache extends AbstractRemoteActionCache {
});
} catch (RetryException e) {
if (RemoteRetrierUtils.causedByStatus(e, Status.Code.NOT_FOUND)) {
- throw new CacheNotFoundException(digest);
+ throw new CacheNotFoundException(digest, digestUtil);
}
throw e;
}
@@ -225,7 +225,7 @@ public class GrpcRemoteCache extends AbstractRemoteActionCache {
});
} catch (RetryException e) {
if (RemoteRetrierUtils.causedByStatus(e, Status.Code.NOT_FOUND)) {
- throw new CacheNotFoundException(digest);
+ throw new CacheNotFoundException(digest, digestUtil);
}
throw e;
}