aboutsummaryrefslogtreecommitdiff
path: root/other/java/client/src
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-03 01:36:26 -0700
committerChris Lu <chris.lu@gmail.com>2021-11-03 01:36:26 -0700
commit6fb6480a3beef4cc23ec01a6e8f0b77a004513de (patch)
tree89ed2e1248fddfa121157f31bd3e4ee39fd703d4 /other/java/client/src
parentaf71ae11aa29350a60ed7d3b9a16276a06ba9dcc (diff)
downloadseaweedfs-6fb6480a3beef4cc23ec01a6e8f0b77a004513de.tar.xz
seaweedfs-6fb6480a3beef4cc23ec01a6e8f0b77a004513de.zip
Java: 1.7.0
update org.apache.httpcomponents to 4.5.13 update grpc API to use cacheRemoteObjectToLocalCluster
Diffstat (limited to 'other/java/client/src')
-rw-r--r--other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java b/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java
index a84d5aa2b..0d912272b 100644
--- a/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java
+++ b/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java
@@ -14,10 +14,10 @@ public class RemoteUtil {
String dir = SeaweedOutputStream.getParentDirectory(fullpath);
String name = SeaweedOutputStream.getFileName(fullpath);
- final FilerProto.CacheRemoteObjectToLocalClusterResponse downloadToLocalResponse = filerClient.getBlockingStub()
- .downloadToLocal(FilerProto.CacheRemoteObjectToLocalClusterRequest.newBuilder()
+ final FilerProto.CacheRemoteObjectToLocalClusterResponse response = filerClient.getBlockingStub()
+ .cacheRemoteObjectToLocalCluster(FilerProto.CacheRemoteObjectToLocalClusterRequest.newBuilder()
.setDirectory(dir).setName(name).build());
- return downloadToLocalResponse.getEntry();
+ return response.getEntry();
}
}