Revert "MM-53879: Fix recursive loading of license (#24200)" (#24498)

This reverts commit dd73c2af0f.
Этот коммит содержится в:
Agniva De Sarker
2023-09-07 20:58:20 +05:30
коммит произвёл GitHub
родитель 01cf4b459f
Коммит acdfefe456
15 изменённых файлов: 165 добавлений и 31 удалений

Просмотреть файл

@@ -46,7 +46,7 @@ func (ps *PlatformService) License() *model.License {
return ps.licenseValue.Load()
}
func (ps *PlatformService) loadLicense() {
func (ps *PlatformService) LoadLicense() {
// ENV var overrides all other sources of license.
licenseStr := os.Getenv(LicenseEnv)
if licenseStr != "" {
@@ -326,6 +326,9 @@ func (ps *PlatformService) RequestTrialLicense(trialRequest *model.TrialLicenseR
return err
}
ps.ReloadConfig()
ps.InvalidateAllCaches()
return nil
}