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

Function pullOnce

packages/rpc/src/sync-driver.ts:69–78  ·  view source on GitHub ↗
(
  db: Database,
  remote: SyncRPC,
  backend?: string,
)

Source from the content-addressed store, hash-verified

67// cursor is read and written per backend so concurrent backends keep
68// independent resume points.
69export async function pullOnce(
70 db: Database,
71 remote: SyncRPC,
72 backend?: string,
73): Promise<ApplyResult> {
74 // Delegate to the inner implementation with retried=false. See
75 // pullOnceImpl for the fetchChanges round trip, invariant check,
76 // reset-and-retry path, and batched apply loop.
77 return pullOnceImpl(db, remote, backend, false);
78}
79
80// Inner pullOnce that knows whether it is already a retry. The
81// outer pullOnce always enters with retried=false; on a watermark

Callers 7

#pullResolvedMethod · 0.90
tickFunction · 0.85
wire.test.tsFile · 0.85
mainFunction · 0.85

Calls 1

pullOnceImplFunction · 0.85

Tested by

no test coverage detected