MCPcopy Index your code
hub / github.com/ether/etherpad / getCurrentState

Function getCurrentState

src/node/updater/index.ts:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37/** Returns the current state from memory; loads on first call. */
38export const getCurrentState = async (): Promise<UpdateState> => {
39 if (inMemoryState) return inMemoryState;
40 inMemoryState = await loadState(stateFilePath());
41 return inMemoryState;
42};
43
44export const getDetectedInstallMethod = () => detectedMethod;
45

Callers 2

performCheckFunction · 0.85
expressCreateServerFunction · 0.85

Calls 2

loadStateFunction · 0.90
stateFilePathFunction · 0.85

Tested by

no test coverage detected