MCPcopy Create free account
hub / github.com/cloudflare/computer / cursorComplete

Function cursorComplete

packages/rpc/src/sync-driver.ts:275–278  ·  view source on GitHub ↗
(after: ChangeCursor, current: ChangeCursor)

Source from the content-addressed store, hash-verified

273}
274
275function cursorComplete(after: ChangeCursor, current: ChangeCursor): boolean {
276 if (current.rev < after.rev) return true;
277 return current.rev === after.rev && after.path === null;
278}
279
280function writeFetchCursorIfAhead(db: Database, cursor: ChangeCursor, backend?: string): void {
281 // Overlapping pulls can complete out of order, so checkpoint writes

Callers 1

pullOnceImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected