Commit 9c9f8d43 authored by Ben Wilson's avatar Ben Wilson

Added a polling cycle var to op-exporter

parent 11320c87
......@@ -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