MCPcopy Create free account
hub / github.com/Noumena-Network/code / insertFileHistorySnapshot

Method insertFileHistorySnapshot

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

Source from the content-addressed store, hash-verified

1165 }
1166
1167 async insertFileHistorySnapshot(
1168 messageId: UUID,
1169 snapshot: FileHistorySnapshot,
1170 isSnapshotUpdate: boolean,
1171 ) {
1172 return this.trackWrite(async () => {
1173 const fileHistoryMessage: FileHistorySnapshotMessage = {
1174 type: 'file-history-snapshot',
1175 messageId,
1176 snapshot,
1177 isSnapshotUpdate,
1178 }
1179 await this.appendEntry(fileHistoryMessage)
1180 })
1181 }
1182
1183 async insertQueueOperation(queueOp: QueueOperationMessage) {
1184 return this.trackWrite(async () => {

Callers 1

Calls 2

trackWriteMethod · 0.95
appendEntryMethod · 0.95

Tested by

no test coverage detected