MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / disable

Method disable

packages/telemetry/src/client.ts:60–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 disable(): void {
61 this.disabled = true;
62 this.queue = [];
63 if (this.sink !== null) {
64 this.sink.stopPeriodicFlush();
65 this.sink.clearBuffer();
66 this.sink = null;
67 }
68 }
69
70 enable(): void {
71 this.disabled = false;

Callers 4

telemetry.test.tsFile · 0.45
disableMethod · 0.45
disableFunction · 0.45
initializeTelemetryFunction · 0.45

Calls 2

stopPeriodicFlushMethod · 0.80
clearBufferMethod · 0.80

Tested by

no test coverage detected