fix
This commit is contained in:
1 parent
e81b8c2fcd
commit
0052822e49
7 files changed
+94
-1
No files matched your search
@@ -244,6 +244,16 @@ func main() {
|
||||
historySize := 100
|
||||
store := setupStore(context.Background())
|
||||
coll := collector.New(nil, historySize, store) // Temporary nil for wsServer
|
||||
if occurrenceStore, ok := store.(storage.OccurrenceStore); ok {
|
||||
occurrences, err := occurrenceStore.RecentOccurrences(context.Background(), 100000)
|
||||
if err != nil {
|
||||
log.Printf("issues: persisted index restore skipped: %v", err)
|
||||
} else if n, err := coll.RestoreIssues(context.Background(), occurrences); err != nil {
|
||||
log.Printf("issues: persisted index restore failed after %d occurrences: %v", n, err)
|
||||
} else if len(occurrences) > 0 {
|
||||
log.Printf("issues: restored %d persisted occurrences", n)
|
||||
}
|
||||
}
|
||||
kubeWatcher, kubeErr := kube.NewFromEnv(context.Background())
|
||||
if kubeErr != nil {
|
||||
log.Printf("kubernetes: rollout watcher disabled: %v", kubeErr)
|
||||
|
||||
Reference in new issue
Block a user