Skip to content

Commit

Permalink
fix: ensure the pollBackoffFunc is correctly set (#322) (#323)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b2f869)

Co-authored-by: Jonas L <[email protected]>
  • Loading branch information
github-actions[bot] and jooola authored Oct 4, 2023
1 parent a69f231 commit 9e19dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcloud/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func WithPollInterval(pollInterval time.Duration) ClientOption {
// function when polling from the API.
func WithPollBackoffFunc(f BackoffFunc) ClientOption {
return func(client *Client) {
client.backoffFunc = f
client.pollBackoffFunc = f
}
}

Expand Down

0 comments on commit 9e19dea

Please sign in to comment.