MCPcopy Create free account
hub / github.com/apitable/apitable / clearAllStorage

Method clearAllStorage

packages/core/src/sync/room.ts:645–651  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643
644 // Clear all pending ops and pending changesets
645 private clearAllStorage() {
646 for (const resourceId of this.collaEngineMap.keys()) {
647 const collaEngine = this.collaEngineMap.get(resourceId)!;
648 collaEngine.clearLocalPendingChangeset();
649 collaEngine.clearOpBuffer();
650 }
651 }
652
653 /**
654 * @description for the next round of sending

Callers 2

handleRejectCommitMethod · 0.95

Calls 4

keysMethod · 0.65
getMethod · 0.65
clearOpBufferMethod · 0.45

Tested by

no test coverage detected