Skip to content

Commit

Permalink
fix udp UdpHealthChecker
Browse files Browse the repository at this point in the history
(cherry picked from commit c52349e)
  • Loading branch information
seanyu authored and SkyeBeFreeman committed Apr 25, 2023
1 parent de95730 commit b11468e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public DetectResult detectInstance(Instance instance, FaultDetectRule faultDetec
UdpProtocolConfig curConfig = config;

int timeoutMs = DEFAULT_TIMEOUT_MILLI;
if (null != faultDetectRule && faultDetectRule.getProtocol() == Protocol.TCP) {
if (null != faultDetectRule && faultDetectRule.getProtocol() == Protocol.UDP) {
if (faultDetectRule.getTimeout() > 0) {
timeoutMs = faultDetectRule.getTimeout();
}
Expand Down

0 comments on commit b11468e

Please sign in to comment.