From 2738db22fbe9b28f1df9014101879fb54eaf0068 Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Fri, 25 Mar 2022 08:55:17 +0000
Subject: [PATCH] pacer: default the Google pacer to a burst of 100 to fix gcs
 pacing

Before this change the pacer defaulted to a burst of 1 which mean that
it kept being activated unecessarily.

This affected Google Cloud Storage and Google Photos.

See: https://forum.rclone.org/t/no-traverse-too-slow-with-lot-of-files/29886/12
---
 lib/pacer/pacers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pacer/pacers.go b/lib/pacer/pacers.go
index d24c10285..d510eea64 100644
--- a/lib/pacer/pacers.go
+++ b/lib/pacer/pacers.go
@@ -219,7 +219,7 @@ type GoogleDriveOption interface {
 func NewGoogleDrive(opts ...GoogleDriveOption) *GoogleDrive {
 	c := &GoogleDrive{
 		minSleep: 10 * time.Millisecond,
-		burst:    1,
+		burst:    100,
 	}
 	c.Update(opts...)
 	return c