forked from TrueCloudLab/rclone
fshttp: fix error reporting on tpslimit token bucket errors
This commit is contained in:
parent
ee3215ac76
commit
e81eca4055
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue