Skip to content

Commit

Permalink
disable package invalidatio
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanVolkov committed Sep 11, 2024
1 parent 441bf61 commit 28ce81c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index_builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
fmt.Println(fmt.Sprintf("Index size: %v", count))
end := time.Now()

end = indexTimestamp.Add(time.Hour * 24 * 7)
// end = indexTimestamp.Add(time.Hour * 24 * 7)

fmt.Println(fmt.Sprintf("start: %v - end: %v", indexTimestamp.Format(time.RFC3339Nano), end.Format(time.RFC3339Nano)))
uniqueURLs := goindexloader.GetUniqueURLs(indexTimestamp, end, time.Hour*2)
Expand All @@ -39,10 +39,10 @@ func main() {
validations.CleanupInvalidPackageURLs(&uniqueURLs)
fmt.Printf("Removed %v incorrect package urls\n", countBefore-len(uniqueURLs))

fmt.Println("Cleaning invalid packages...")
removedURLs := validations.CleanupInvalidPackages(&uniqueURLs)
fmt.Println("Removed %v incorrect packages", len(removedURLs))
fmt.Println(removedURLs)
// fmt.Println("Cleaning invalid packages...")
// removedURLs := validations.CleanupInvalidPackages(&uniqueURLs)
// fmt.Println("Removed %v incorrect packages", len(removedURLs))
// fmt.Println(removedURLs)

updatedIndex, diff := index.Merge(loadedIndex, uniqueURLs)
fmt.Printf("New size: %v ", len(updatedIndex))
Expand Down

0 comments on commit 28ce81c

Please sign in to comment.