feat:(1.2.0-beta1.1): 修复GRPC类型名称错误
This commit is contained in:
parent
e304a8a4b6
commit
bfe4565cbd
@ -32,7 +32,7 @@ public class SnailJobGrpcClient implements Lifecycle {
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
if (RpcTypeEnum.GPRC != snailJobProperties.getRpcType()) {
|
||||
if (RpcTypeEnum.GRPC != snailJobProperties.getRpcType()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ public class SnailGrpcServer implements Lifecycle {
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
if (started || RpcTypeEnum.GPRC != snailJobProperties.getRpcType()) {
|
||||
if (started || RpcTypeEnum.GRPC != snailJobProperties.getRpcType()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,6 @@ package com.aizuda.snailjob.common.core.enums;
|
||||
*/
|
||||
public enum RpcTypeEnum {
|
||||
|
||||
GPRC,
|
||||
GRPC,
|
||||
NETTY
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class GrpcServer implements Lifecycle {
|
||||
return;
|
||||
}
|
||||
|
||||
if (RpcTypeEnum.GPRC != systemProperties.getRpcType()) {
|
||||
if (RpcTypeEnum.GRPC != systemProperties.getRpcType()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user