Skip to content

Commit

Permalink
Improve: change provider file modify time when updated (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Jan 18, 2022
1 parent 9732efe commit cfe7354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adapter/provider/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cfe7354

Please sign in to comment.