Skip to content

Commit 90ed01e

Browse files
committed
fix: backoff not reset when the file unchanged
1 parent f91a586 commit 90ed01e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

component/resource/fetcher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func (f *Fetcher[V]) loadBuf(buf []byte, hash utils.HashType, updateFile bool) (
105105
_ = os.Chtimes(f.vehicle.Path(), now, now)
106106
}
107107
f.updatedAt = now
108+
f.backoff.Reset() // no error, reset backoff
108109
return lo.Empty[V](), true, nil
109110
}
110111

0 commit comments

Comments
 (0)