diff options
| author | Michael Klishin <klishinm@vmware.com> | 2023-01-31 20:57:11 -0500 |
|---|---|---|
| committer | Michael Klishin <klishinm@vmware.com> | 2023-01-31 20:57:11 -0500 |
| commit | 1f902fd016bb6797ecd82430ea9fb1876f3c5866 (patch) | |
| tree | c2474ce5dcf44eeb9f8898b8193a2c46f3656740 | |
| parent | cee705b99f3ddbf260b1630af8de49ca45e8bf60 (diff) | |
| download | rabbitmq-server-git-1f902fd016bb6797ecd82430ea9fb1876f3c5866.tar.gz | |
mix format
| -rw-r--r-- | deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/cluster_status_command.ex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/cluster_status_command.ex b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/cluster_status_command.ex index b5bd9dbbdc..554e8f643c 100644 --- a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/cluster_status_command.ex +++ b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/cluster_status_command.ex @@ -111,7 +111,8 @@ defmodule RabbitMQ.CLI.Ctl.Commands.ClusterStatusCommand do def output(result, %{node: node_name}) when is_list(result) do m = result_map(result) - total_cores = Enum.reduce(m[:cpu_cores], 0, fn ({_, val}, acc) -> acc + val end) + total_cores = Enum.reduce(m[:cpu_cores], 0, fn {_, val}, acc -> acc + val end) + cluster_name_section = [ "#{bright("Basics")}\n", "Cluster name: #{m[:cluster_name]}", @@ -394,7 +395,9 @@ defmodule RabbitMQ.CLI.Ctl.Commands.ClusterStatusCommand do end defp cpu_core_lines(mapping) do - Enum.map(mapping, fn {node, core_count} -> "Node: #{node}, available CPU cores: #{core_count}" end) + Enum.map(mapping, fn {node, core_count} -> + "Node: #{node}, available CPU cores: #{core_count}" + end) end defp maintenance_lines(mapping) do |
