Skip to content

Commit

Permalink
fix poll_interval reference
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Oct 31, 2024
1 parent a4f8cdb commit 22f2b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uplink/metrics/producer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule Uplink.Metrics.Producer do
@impl true
def handle_info(:poll, state) do
Logger.info("[Metrics.Producer] poll #{DateTime.utc_now()}")
next_schedule = div(poll_interval, 2)
next_schedule = div(state.poll_interval, 2)
Process.send_after(self(), :poll, next_schedule)

if ready_to_fetch?(state) do
Expand Down

0 comments on commit 22f2b3f

Please sign in to comment.