feat:(1.2.0-beta1.1): 修复GRPC类型名称错误

This commit is contained in:
opensnail 2024-09-11 21:40:22 +08:00
parent e304a8a4b6
commit bfe4565cbd
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ public class SnailJobGrpcClient implements Lifecycle {
@Override @Override
public void start() { public void start() {
if (RpcTypeEnum.GPRC != snailJobProperties.getRpcType()) { if (RpcTypeEnum.GRPC != snailJobProperties.getRpcType()) {
return; return;
} }

View File

@ -55,7 +55,7 @@ public class SnailGrpcServer implements Lifecycle {
@Override @Override
public void start() { public void start() {
if (started || RpcTypeEnum.GPRC != snailJobProperties.getRpcType()) { if (started || RpcTypeEnum.GRPC != snailJobProperties.getRpcType()) {
return; return;
} }

View File

@ -6,6 +6,6 @@ package com.aizuda.snailjob.common.core.enums;
*/ */
public enum RpcTypeEnum { public enum RpcTypeEnum {
GPRC, GRPC,
NETTY NETTY
} }

View File

@ -58,7 +58,7 @@ public class GrpcServer implements Lifecycle {
return; return;
} }
if (RpcTypeEnum.GPRC != systemProperties.getRpcType()) { if (RpcTypeEnum.GRPC != systemProperties.getRpcType()) {
return; return;
} }