From 00cedd22aa18aa763167462b164a7eec5801e472 Mon Sep 17 00:00:00 2001 From: Ingo Gottwald Date: Thu, 1 Oct 2020 09:44:39 +0200 Subject: [PATCH] Replace deprecated method in gs backend --- internal/backend/gs/gs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/backend/gs/gs.go b/internal/backend/gs/gs.go index 70df25cfa..b0d805824 100644 --- a/internal/backend/gs/gs.go +++ b/internal/backend/gs/gs.go @@ -18,6 +18,7 @@ import ( "golang.org/x/oauth2" "golang.org/x/oauth2/google" "google.golang.org/api/googleapi" + "google.golang.org/api/option" storage "google.golang.org/api/storage/v1" ) @@ -66,7 +67,7 @@ func getStorageService(rt http.RoundTripper) (*storage.Service, error) { client := oauth2.NewClient(ctx, ts) - service, err := storage.New(client) + service, err := storage.NewService(ctx, option.WithHTTPClient(client)) if err != nil { return nil, err }