MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / insertFileHistorySnapshot

Method insertFileHistorySnapshot

src/utils/sessionStorage.ts:1131–1145  ·  view source on GitHub ↗
(
    messageId: UUID,
    snapshot: FileHistorySnapshot,
    isSnapshotUpdate: boolean,
  )

Source from the content-addressed store, hash-verified

1129 }
1130
1131 async insertFileHistorySnapshot(
1132 messageId: UUID,
1133 snapshot: FileHistorySnapshot,
1134 isSnapshotUpdate: boolean,
1135 ) {
1136 return this.trackWrite(async () => {
1137 const fileHistoryMessage: FileHistorySnapshotMessage = {
1138 type: 'file-history-snapshot',
1139 messageId,
1140 snapshot,
1141 isSnapshotUpdate,
1142 }
1143 await this.appendEntry(fileHistoryMessage)
1144 })
1145 }
1146
1147 async insertQueueOperation(queueOp: QueueOperationMessage) {
1148 return this.trackWrite(async () => {

Callers 1

Calls 2

trackWriteMethod · 0.95
appendEntryMethod · 0.95

Tested by

no test coverage detected