fix: backoff not reset when the file unchanged

This commit is contained in:
wwqgtxx 2025-05-14 21:45:12 +08:00
parent f91a586da8
commit 90ed01ed53

View File

@ -105,6 +105,7 @@ func (f *Fetcher[V]) loadBuf(buf []byte, hash utils.HashType, updateFile bool) (
_ = os.Chtimes(f.vehicle.Path(), now, now)
}
f.updatedAt = now
f.backoff.Reset() // no error, reset backoff
return lo.Empty[V](), true, nil
}