(options: { isStartup: boolean })
| 343 | } |
| 344 | |
| 345 | private async refreshPolicy(options: { isStartup: boolean }): Promise<Result<void, string>> { |
| 346 | if (this.refreshInFlight) { |
| 347 | return this.refreshInFlight; |
| 348 | } |
| 349 | |
| 350 | const promise = this.refreshPolicyOnce(options).finally(() => { |
| 351 | this.refreshInFlight = null; |
| 352 | }); |
| 353 | |
| 354 | this.refreshInFlight = promise; |
| 355 | return promise; |
| 356 | } |
| 357 | |
| 358 | private async refreshPolicyOnce(options: { isStartup: boolean }): Promise<Result<void, string>> { |
| 359 | const policySource = this.getActivePolicySource(); |
no test coverage detected