diff options
Diffstat (limited to 'drive/sync_download.go')
| -rw-r--r-- | drive/sync_download.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drive/sync_download.go b/drive/sync_download.go index 10dfd16..58cd49c 100644 --- a/drive/sync_download.go +++ b/drive/sync_download.go @@ -193,7 +193,7 @@ func (self *Drive) downloadRemoteFile(id, fpath string, args DownloadSyncArgs, t  	res, err := self.service.Files.Get(id).Context(ctx).Download()  	if err != nil { -		if isBackendError(err) && try < MaxBackendErrorRetries { +		if isBackendOrRateLimitError(err) && try < MaxErrorRetries {  			exponentialBackoffSleep(try)  			try++  			return self.downloadRemoteFile(id, fpath, args, try) @@ -231,7 +231,7 @@ func (self *Drive) downloadRemoteFile(id, fpath string, args DownloadSyncArgs, t  	_, err = io.Copy(outFile, reader)  	if err != nil {  		outFile.Close() -		if try < MaxBackendErrorRetries { +		if try < MaxErrorRetries {  			exponentialBackoffSleep(try)  			try++  			return self.downloadRemoteFile(id, fpath, args, try) | 
