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

Function pull

packages/dofs/src/sync/push.test.ts:160–166  ·  view source on GitHub ↗
(db: Database, hashes: Uint8Array[])

Source from the content-addressed store, hash-verified

158}
159
160async function pull(db: Database, hashes: Uint8Array[]): Promise<Map<string, Uint8Array>> {
161 const out = new Map<string, Uint8Array>();
162 for await (const { hash, bytes } of pushObjects(db, hashes)) {
163 out.set(hex(hash), bytes);
164 }
165 return out;
166}

Callers 1

push.test.tsFile · 0.70

Calls 3

pushObjectsFunction · 0.70
hexFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected