mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
feat(startup): update logic for metadb update on startup, skip unmodified repos (#2024)
- MetaDB stores the time of the last update of a repo - During startup we check if the layout has been updated after the last recorded change in the db - If this is the case, the repo is parsed and updated in the DB otherwise it's skipped Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -212,7 +212,7 @@ func GenerateRandomName() (string, int64) {
|
||||
return string(randomBytes), seed
|
||||
}
|
||||
|
||||
func AccumulateField[R any, T any](list []T, accFunc func(T) R) []R {
|
||||
func AccumulateField[T any, R any](list []T, accFunc func(T) R) []R {
|
||||
result := make([]R, 0, len(list))
|
||||
|
||||
for i := range list {
|
||||
|
||||
Reference in New Issue
Block a user