Skip to content

Commit

Permalink
Add some offset for poll_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Nov 1, 2024
1 parent 5599e11 commit 3cd9c84
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 @@ -49,7 +49,7 @@ defmodule Uplink.Metrics.Producer do

@impl true
def handle_info(:poll, state) do
next_schedule = div(state.poll_interval, 3)
next_schedule = div(state.poll_interval + 200, 3)
Process.send_after(self(), :poll, next_schedule)

if ready_to_fetch?(state) do
Expand Down

0 comments on commit 3cd9c84

Please sign in to comment.