From 14a453b1b1e269ffc80751fa8effedaeb5e0fda5 Mon Sep 17 00:00:00 2001 From: gVisor bot 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 6c1e96b4..81f9ec96 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 }