Skip to content
Snippets Groups Projects
Unverified Commit c89c462c authored by Lukas Kämmerling's avatar Lukas Kämmerling Committed by GitHub
Browse files

Increase default polling interval to 3 seconds. (#230)


Calling the API every second is not needed as most actions are done in less than three seconds, so we can easily save a few API requests here.

Signed-off-by: default avatarLukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
parent 54f573ea
Branches
Tags
No related merge requests found
......@@ -78,7 +78,7 @@ func main() {
opts = append(opts, hcloud.WithDebugWriter(os.Stdout))
}
pollingInterval := 1
pollingInterval := 3
if customPollingInterval := os.Getenv("HCLOUD_POLLING_INTERVAL_SECONDS"); customPollingInterval != "" {
tmp, err := strconv.Atoi(customPollingInterval)
if err != nil || tmp < 1 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment