refactor(core): Move instanceRole to InstanceSettings (no-changelog) (#10242)
This commit is contained in:
committed by
GitHub
parent
7056e50b00
commit
0faf46f4f8
@@ -55,7 +55,7 @@ export class License {
|
||||
* This ensures the mains do not cause a 429 (too many requests) on license init.
|
||||
*/
|
||||
if (config.getEnv('multiMainSetup.enabled')) {
|
||||
return autoRenewEnabled && config.getEnv('instanceRole') === 'leader';
|
||||
return autoRenewEnabled && this.instanceSettings.isLeader;
|
||||
}
|
||||
|
||||
return autoRenewEnabled;
|
||||
|
||||
Reference in New Issue
Block a user