Skip to content

Commit

Permalink
UDPATE: privatize get_partitions()
Browse files Browse the repository at this point in the history
  • Loading branch information
seungjinstord committed Jan 9, 2025
1 parent 4cc9549 commit a08d625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kafee/consumer/brod_monitor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ defmodule Kafee.Consumer.BrodMonitor do
:brod.fetch_committed_offsets(client_id, consumer_group_id)
end

def get_partitions(endpoints, topic, options \\ []) do
defp get_partitions(endpoints, topic, options) do
case :brod.get_metadata(endpoints, [topic], options) do
{:ok, %{topics: [%{partitions: partitions}]}} ->
Enum.map(partitions, fn %{partition_index: id} -> id end)
Expand Down Expand Up @@ -129,7 +129,7 @@ defmodule Kafee.Consumer.BrodMonitor do
{:ok, lags_map}
end

def committed_offsets_by_partition(committed_offsets) do
defp committed_offsets_by_partition(committed_offsets) do
committed_offsets
|> Enum.map(fn %{partition_index: partition, committed_offset: committed_offset} ->
{partition, committed_offset}
Expand Down

0 comments on commit a08d625

Please sign in to comment.