chore(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.15.0

This commit is contained in:
Julian Tölle 2024-11-02 22:05:49 +01:00
parent 4e24d83c7a
commit b6913b46c6
7 changed files with 110 additions and 75 deletions

View file

@ -89,7 +89,7 @@ func initClient(cmd *cobra.Command, _ []string) {
opts := []hcloud.ClientOption{
hcloud.WithToken(os.Getenv("HCLOUD_TOKEN")),
hcloud.WithApplication("hcloud-upload-image", version.Version),
hcloud.WithPollBackoffFunc(backoff.ExponentialBackoffWithLimit(2, 1*time.Second, 30*time.Second)),
hcloud.WithPollOpts(hcloud.PollOpts{BackoffFunc: backoff.ExponentialBackoffWithLimit(2, 1*time.Second, 30*time.Second)}),
}
if os.Getenv("HCLOUD_DEBUG") != "" || verbose >= 2 {