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

fs: remove unnecessary pacer warning

Fabian Möller8f4ea77c07a1
diff --git a/fs/fs.go b/fs/fs.go
index ffdd6cf36..25ada9701 100644
--- a/fs/fs.go
+++ b/fs/fs.go
@@ -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 {