mirror of
https://github.com/rclone/rclone.git
synced 2025-01-27 08:39:23 +01:00
fshttp: fix error reporting on tpslimit token bucket errors
This commit is contained in:
parent
6c10b162ea
commit
fb25a926d7
@ -319,7 +319,7 @@ func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error
|
|||||||
if tpsBucket != nil {
|
if tpsBucket != nil {
|
||||||
tbErr := tpsBucket.Wait(req.Context())
|
tbErr := tpsBucket.Wait(req.Context())
|
||||||
if tbErr != nil {
|
if tbErr != nil {
|
||||||
fs.Errorf(nil, "HTTP token bucket error: %v", err)
|
fs.Errorf(nil, "HTTP token bucket error: %v", tbErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Force user agent
|
// Force user agent
|
||||||
|
Loading…
Reference in New Issue
Block a user