From cfe7354c07e8c837691b03fb183127f431e5d218 Mon Sep 17 00:00:00 2001 From: Kr328 Date: Tue, 18 Jan 2022 13:32:47 +0800 Subject: [PATCH] Improve: change provider file modify time when updated (#1918) --- adapter/provider/fetcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/adapter/provider/fetcher.go b/adapter/provider/fetcher.go index 6c1e96b..81f9ec9 100644 --- a/adapter/provider/fetcher.go +++ b/adapter/provider/fetcher.go @@ -102,6 +102,7 @@ func (f *fetcher) Update() (interface{}, bool, error) { hash := md5.Sum(buf) if bytes.Equal(f.hash[:], hash[:]) { f.updatedAt = &now + os.Chtimes(f.vehicle.Path(), now, now) return nil, true, nil }