Derive release channel by index presence, remove unused indexes from core

This commit is contained in:
Daniel
2022-01-26 16:42:23 +01:00
parent f0799bf2e7
commit a7a94bf067
4 changed files with 59 additions and 39 deletions

View File

@@ -114,7 +114,10 @@ func start() error {
}
// Set indexes based on the release channel.
helper.SetIndexes(registry, initialReleaseChannel)
warning := helper.SetIndexes(registry, initialReleaseChannel, true)
if warning != nil {
log.Warningf("updates: %s", warning)
}
err = registry.LoadIndexes(module.Ctx)
if err != nil {