mirror of
https://github.com/rclone/rclone.git
synced 2025-01-25 07:39:13 +01:00
fshttp: don't print token bucket errors on context cancelled
These happen as a natural part of exceeding --max-transfer and we don't need to worry the user with them.
This commit is contained in:
parent
f91b120be7
commit
9d69bc0b48
@ -318,7 +318,7 @@ func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error
|
||||
// Get transactions per second token first if limiting
|
||||
if tpsBucket != nil {
|
||||
tbErr := tpsBucket.Wait(req.Context())
|
||||
if tbErr != nil {
|
||||
if tbErr != nil && tbErr != context.Canceled {
|
||||
fs.Errorf(nil, "HTTP token bucket error: %v", tbErr)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user