Ignore result without strict match to avoid diayzer warning

This commit is contained in:
Ayanda Dube 2025-03-03 16:04:32 +00:00
parent a45aa81bd2
commit bb43c0b929
1 changed files with 3 additions and 1 deletions

View File

@ -2186,7 +2186,9 @@ leader_health_check(QueueNameOrRegEx, VHost, ProcessLimitThreshold) ->
run_leader_health_check(ClusterName, QResource, HealthCheckRef, From) ->
Leader = ra_leaderboard:lookup_leader(ClusterName),
{_, _, _} =
%% Ignoring result here is required to clear a diayzer warning.
_ =
case ra_server_proc:ping(Leader, ?LEADER_HEALTH_CHECK_TIMEOUT) of
{pong,leader} ->
From ! {ok, HealthCheckRef, QResource};