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

Function recordChangesetApply

src/node/prom-instruments.ts:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53/** Start a timer for the changeset apply path. Call the returned function when done.
54 * Returns a no-op stopper when the feature flag is off. */
55export const recordChangesetApply = (): (() => void) => {
56 if (!enabled()) return () => {};
57 return changesetApplyDuration.startTimer();
58};
59
60/** Increment the socket-emit counter for the given message type.
61 * No-op when the feature flag is off. Unknown/missing types are bucketed as

Callers 2

handleUserChangesFunction · 0.90

Calls 1

enabledFunction · 0.85

Tested by

no test coverage detected