Skip to content

Commit

Permalink
Remove cluster health recalculation on checks selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-suse committed Dec 1, 2023
1 parent a8a19df commit c02ec49
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions lib/trento/clusters/cluster.ex
Original file line number Diff line number Diff line change
Expand Up @@ -294,22 +294,15 @@ defmodule Trento.Clusters.Cluster do
def execute(
%Cluster{
cluster_id: cluster_id
} = cluster,
},
%SelectChecks{
checks: selected_checks
}
) do
cluster
|> Multi.new()
|> Multi.execute(fn _ ->
[
%ChecksSelected{
cluster_id: cluster_id,
checks: selected_checks
}
]
end)
|> Multi.execute(fn cluster -> maybe_emit_cluster_health_changed_event(cluster) end)
%ChecksSelected{
cluster_id: cluster_id,
checks: selected_checks
}
end

def execute(
Expand Down

0 comments on commit c02ec49

Please sign in to comment.