MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / flush

Method flush

packages/db/src/buffers/event-buffer.ts:118–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 public async flush() {
119 if (this.flushTimer) {
120 clearTimeout(this.flushTimer);
121 this.flushTimer = null;
122 }
123 await this.flushLocalBuffer();
124 }
125
126 private async flushLocalBuffer() {
127 if (this.isFlushing || this.pendingEvents.length === 0) {

Callers 1

Calls 1

flushLocalBufferMethod · 0.95

Tested by

no test coverage detected