From 90ed01ed533a47a8e0856fa59f1822b560573821 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Wed, 14 May 2025 21:45:12 +0800 Subject: [PATCH] fix: backoff not reset when the file unchanged --- component/resource/fetcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/component/resource/fetcher.go b/component/resource/fetcher.go index 3658e1a1..f2c9b5bd 100644 --- a/component/resource/fetcher.go +++ b/component/resource/fetcher.go @@ -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 }