Skip to content

Commit

Permalink
Pleeease
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Aug 7, 2023
1 parent dab85e1 commit df23490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xandra/cluster/control_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ defmodule Xandra.Cluster.ControlConnection do
spec = [{{{:"$1", :_}, :_, :"$2"}, [{:==, :"$1", {{{address}, port}}}], [:"$2"]}]
statuses = Registry.select(data.registry, spec)

if host_info.status == :up and Enum.all?(statuses, &(&1 == :down)) do
if host_info.status == :up and statuses != [] and Enum.all?(statuses, &(&1 == :down)) do
execute_telemetry(data, [:change_event], %{}, %{
event_type: :host_down,
host: host_info.host,
Expand Down

0 comments on commit df23490

Please sign in to comment.