diff --git a/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServer.java b/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServer.java index 49481f5..d07369b 100644 --- a/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServer.java +++ b/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServer.java @@ -188,6 +188,7 @@ private void registerOne(String serviceName) { request.setNamespace(builder.getNamespace()); request.setService(serviceName); request.setHost(host); + request.setToken(builder.getToken()); request.setVersion(builder.getVersion()); request.setProtocol("grpc"); request.setWeight(builder.getWeight()); diff --git a/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServerBuilder.java b/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServerBuilder.java index dcbb88c..0370814 100644 --- a/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServerBuilder.java +++ b/grpc-java-polaris/src/main/java/com/tencent/polaris/grpc/server/PolarisGrpcServerBuilder.java @@ -60,6 +60,8 @@ public final class PolarisGrpcServerBuilder extends ServerBuilder