mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-22 19:00:07 +08:00
fix: backoff not reset when the file unchanged
This commit is contained in:
parent
f91a586da8
commit
90ed01ed53
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user