Skip to content

Commit

Permalink
v0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bughue committed Dec 4, 2024
1 parent 3e3f5da commit cfde859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public static boolean isAboveOrEqualVersion230(String version) {
return isAboveOrEqualVersion(version, VERSION_2_3_0);
}

public static boolean isAboveOrEqualVersion071(String version) {
return isAboveOrEqualVersion(version, VERSION_0_7_1);
public static boolean isV0(String version) {
return !isAboveOrEqualVersion(version, VERSION_0_7_1);
}

public static boolean isAboveOrEqualVersion(String clientVersion, String divideVersion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public static boolean versionNotSupport(Channel channel, RpcMessage rpcMessage)
if (StringUtils.isBlank(version) || msg == null) {
return false;
}
boolean aboveV0 = Version.isAboveOrEqualVersion071(version);
if (aboveV0 || !(msg instanceof MessageTypeAware)) {
boolean aboveV0 = Version.isV0(version);
if (!aboveV0 || !(msg instanceof MessageTypeAware)) {
return false;
}
short typeCode = ((MessageTypeAware) msg).getTypeCode();
Expand Down

0 comments on commit cfde859

Please sign in to comment.