Skip to content

Commit

Permalink
Rename handle_ack_received/4
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Dec 4, 2024
1 parent a16ccd1 commit 88a71a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dpul_collections/index_metrics_tracker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule DpulCollections.IndexMetricsTracker do
:telemetry.attach(
"metrics-ack-tracker",
[:database_producer, :ack, :done],
&handle_ack_received/4,
&ack_telemetry_callback/4,
nil
)

Expand Down Expand Up @@ -153,7 +153,7 @@ defmodule DpulCollections.IndexMetricsTracker do
|> put_in([:acked_count], old_acked_count + new_acked_count)
end

defp handle_ack_received([:database_producer, :ack, :done], _measurements, metadata, _config) do
defp ack_telemetry_callback([:database_producer, :ack, :done], _measurements, metadata, _config) do
GenServer.call(__MODULE__, {:ack_received, metadata})
end

Expand Down

0 comments on commit 88a71a6

Please sign in to comment.