summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 01:15:15 -0600
committerJeff Carr <[email protected]>2025-01-30 01:15:15 -0600
commitf7b5e1a83ece8a4f7b527179f1e8a41fff5917c0 (patch)
tree444b970aeb97a4acf9538bca2630c4dd139b18e7 /config.go
parent7c37e3841a5f69493f205d005314ea02e7a9236d (diff)
try a way to track the times so they can be throttled
Diffstat (limited to 'config.go')
-rw-r--r--config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.go b/config.go
index 3970f8c..a1fc49d 100644
--- a/config.go
+++ b/config.go
@@ -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