From 294a1baf8f6e04f561556c66e6dcbf75c643b96f Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Thu, 28 Apr 2022 09:07:58 +0800 Subject: [PATCH] fix: file not change modify time when updated rule --- rule/provider/fetcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rule/provider/fetcher.go b/rule/provider/fetcher.go index c8204dae..c7ab9141 100644 --- a/rule/provider/fetcher.go +++ b/rule/provider/fetcher.go @@ -100,6 +100,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 }