Skip to content

Commit

Permalink
fix: wrong client option name for poll backoff func
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jul 23, 2024
1 parent 64aa9ce commit 90fd82c
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 90fd82c

Please sign in to comment.