diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 01:15:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 01:15:15 -0600 |
| commit | f7b5e1a83ece8a4f7b527179f1e8a41fff5917c0 (patch) | |
| tree | 444b970aeb97a4acf9538bca2630c4dd139b18e7 /config.go | |
| parent | 7c37e3841a5f69493f205d005314ea02e7a9236d (diff) | |
try a way to track the times so they can be throttled
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -8,8 +8,10 @@ import ( "fmt" "os" "path/filepath" + "time" "go.wit.com/log" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) func (f *Forge) ConfigSave() error { @@ -28,6 +30,11 @@ func (f *Forge) ConfigSave() error { } } if f.Repos != nil { + if f.HasFullScan() { + f.Repos.HasFullScan = true + t := time.Now() + f.Repos.FullScan = timestamppb.New(t) + } if e := f.Repos.ConfigSave(); e != nil { log.Info("forge.Repos.ConfigSave() error", e) err = e |
