aboutsummaryrefslogtreecommitdiff
path: root/other/java/client
diff options
context:
space:
mode:
Diffstat (limited to 'other/java/client')
-rw-r--r--other/java/client/pom.xml8
-rw-r--r--other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java4
2 files changed, 9 insertions, 3 deletions
diff --git a/other/java/client/pom.xml b/other/java/client/pom.xml
index 07015145e..2d5e4e31f 100644
--- a/other/java/client/pom.xml
+++ b/other/java/client/pom.xml
@@ -5,12 +5,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>seaweedfs</groupId>
- <artifactId>client</artifactId>
+ <artifactId>seaweedfs-client</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<protobuf.version>3.5.1</protobuf.version>
<grpc.version>1.16.1</grpc.version>
+ <guava.version>26.0-jre</guava.version>
</properties>
<dependencies>
@@ -21,6 +22,11 @@
<version>${protobuf.version}</version>
</dependency>
<dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>${guava.version}</version>
+ </dependency>
+ <dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>${grpc.version}</version>
diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java b/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java
index 47712bc37..16b7c3249 100644
--- a/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java
+++ b/other/java/client/src/main/java/seaweedfs/client/FilerGrpcClient.java
@@ -16,8 +16,8 @@ public class FilerGrpcClient {
private final SeaweedFilerGrpc.SeaweedFilerFutureStub futureStub;
- public FilerGrpcClient(String host, int port) {
- this(ManagedChannelBuilder.forAddress(host, port).usePlaintext());
+ public FilerGrpcClient(String host, int grpcPort) {
+ this(ManagedChannelBuilder.forAddress(host, grpcPort).usePlaintext());
}
public FilerGrpcClient(ManagedChannelBuilder<?> channelBuilder) {