Skip to content

Commit

Permalink
fix: ineffective poll interval option (#822)
Browse files Browse the repository at this point in the history
The hcloud client option name was using the retry back off option
instead of the poll back off option.
  • Loading branch information
jooola committed Jul 23, 2024
1 parent 64aa9ce commit 41aaa56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (c *state) newClient() (hcapi2.Client, error) {
}

if pollInterval > 0 {
opts = append(opts, hcloud.WithBackoffFunc(hcloud.ConstantBackoff(pollInterval)))
opts = append(opts, hcloud.WithPollBackoffFunc(hcloud.ConstantBackoff(pollInterval)))
}

return hcapi2.NewClient(opts...), nil
Expand Down

0 comments on commit 41aaa56

Please sign in to comment.