From 1f39b28f49ef713cf2494186e2d0a6c0f0ddb00b Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 25 Mar 2022 08:58:39 +0000 Subject: [PATCH] googlecloudstorage: use the s3 pacer to speed up transactions This commit switches Google Cloud Storage from the drive pacer to the s3 pacer. The main difference between them is that the s3 pacer does not limit transactions in the non-error case. This is appropriate for a cloud storage backend where you pay for each transaction. --- backend/googlecloudstorage/googlecloudstorage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/googlecloudstorage/googlecloudstorage.go b/backend/googlecloudstorage/googlecloudstorage.go index a838d2350..62c30e4a2 100644 --- a/backend/googlecloudstorage/googlecloudstorage.go +++ b/backend/googlecloudstorage/googlecloudstorage.go @@ -482,7 +482,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e name: name, root: root, opt: *opt, - pacer: fs.NewPacer(ctx, pacer.NewGoogleDrive(pacer.MinSleep(minSleep))), + pacer: fs.NewPacer(ctx, pacer.NewS3(pacer.MinSleep(minSleep))), cache: bucket.NewCache(), } f.setRoot(root)