1
0
mirror of https://github.com/rclone/rclone.git synced 2026-02-21 20:03:24 +00:00

fs: remove unnecessary pacer warning

This commit is contained in:
Fabian Möller
2019-02-18 08:42:36 +01:00
parent 61616ba864
commit 8f4ea77c07

View File

@@ -1139,15 +1139,6 @@ func NewPacer(c pacer.Calculator) *Pacer {
}
func (d *logCalculator) Calculate(state pacer.State) time.Duration {
type causer interface {
Cause() error
}
if c, ok := state.LastError.(causer); ok {
state.LastError = c.Cause()
} else {
Logf("pacer", "Invalid error in fs.Pacer: %t", state.LastError)
}
oldSleepTime := state.SleepTime
newSleepTime := d.Calculator.Calculate(state)
if state.ConsecutiveRetries > 0 {