From 573be855f74105bdaa0e690f1d930e569c7a5153 Mon Sep 17 00:00:00 2001 From: Skyxim 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 }