Commit 1b995090 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #1869 from ethereum-optimism/bwilson/op_exporter-polling-cycle-var

Added a polling cycle var to op-exporter
parents f5ba1465 9c9f8d43
......@@ -41,6 +41,10 @@ var (
"wait.minutes",
"Number of minutes to wait for the next block before marking provider unhealthy.",
).Default("10").Int()
sequencerPollingSeconds = kingpin.Flag(
"sequencer.polling",
"Number of seconds to wait between sequencer polling cycles.",
).Default("30").Int()
enableK8sQuery = kingpin.Flag(
"k8s.enable",
"Enable kubernetes info lookup.",
......@@ -191,7 +195,7 @@ func getBlockNumber(health *healthCheck) {
health.mu.Unlock()
}
time.Sleep(time.Duration(30) * time.Second)
time.Sleep(time.Duration(*sequencerPollingSeconds) * time.Second)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment