Skip to content

Commit

Permalink
fix: update periodically times to one
Browse files Browse the repository at this point in the history
  • Loading branch information
glpecile committed Aug 16, 2024
1 parent a41fce0 commit ccdefff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions explorer/lib/explorer/periodically.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ defmodule Explorer.Periodically do
end

def send_work() do
seconds = 12 * 1000 # once per block
one_second = 1000
seconds_in_an_hour = 60 * 60

:timer.send_interval(seconds, :batches) # every 12 seconds
:timer.send_interval(seconds * seconds_in_an_hour, :restakings) #every 12 hours
:timer.send_interval(one_second * 12, :batches) # every 12 seconds, once per block
:timer.send_interval(one_second * seconds_in_an_hour, :restakings) # every 1 hour
end

# Reads and process last blocks for operators and restaking changes
Expand Down

0 comments on commit ccdefff

Please sign in to comment.