Skip to content

Commit 8bef815

Browse files
Merge pull request #370 from ShanyouYu-Sean/dev/sean/fix-udp
fix UdpHealthChecker
2 parents 89894f7 + c52349e commit 8bef815

File tree

1 file changed

+1
-1
lines changed
  • polaris-plugins/polaris-plugins-healthchecker/healthchecker-udp/src/main/java/com/tencent/polaris/plugins/outlier/detector/udp

1 file changed

+1
-1
lines changed

polaris-plugins/polaris-plugins-healthchecker/healthchecker-udp/src/main/java/com/tencent/polaris/plugins/outlier/detector/udp/UdpHealthChecker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public DetectResult detectInstance(Instance instance, FaultDetectRule faultDetec
6464
UdpProtocolConfig curConfig = config;
6565

6666
int timeoutMs = DEFAULT_TIMEOUT_MILLI;
67-
if (null != faultDetectRule && faultDetectRule.getProtocol() == Protocol.TCP) {
67+
if (null != faultDetectRule && faultDetectRule.getProtocol() == Protocol.UDP) {
6868
if (faultDetectRule.getTimeout() > 0) {
6969
timeoutMs = faultDetectRule.getTimeout();
7070
}

0 commit comments

Comments
 (0)