MCPcopy
hub / github.com/coder/mux / refreshPolicy

Method refreshPolicy

src/node/services/policyService.ts:345–356  ·  view source on GitHub ↗
(options: { isStartup: boolean })

Source from the content-addressed store, hash-verified

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();

Callers 2

initializeMethod · 0.95
refreshNowMethod · 0.95

Calls 1

refreshPolicyOnceMethod · 0.95

Tested by

no test coverage detected