Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fshttp: fix error reporting on tpslimit token bucket errors

Nick Craig-Woode81eca405539
diff --git a/fs/fshttp/http.go b/fs/fshttp/http.go
index 304be7c1a..cb4e219ac 100644
--- a/fs/fshttp/http.go
+++ b/fs/fshttp/http.go
@@ -319,7 +319,7 @@ func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error
if tpsBucket != nil {
tbErr := tpsBucket.Wait(req.Context())
if tbErr != nil {
- fs.Errorf(nil, "HTTP token bucket error: %v", err)
+ fs.Errorf(nil, "HTTP token bucket error: %v", tbErr)
}
}
// Force user agent