(controller)
| 335 | })(); |
| 336 | const bytesStream = new ReadableStream<{ hash: Uint8Array; bytes: Uint8Array }>({ |
| 337 | pull(controller) { |
| 338 | const next = local.next(); |
| 339 | if (next.done) controller.close(); |
| 340 | else controller.enqueue(next.value); |
| 341 | }, |
| 342 | }); |
| 343 | await remote.pushObjects(bytesStream); |
| 344 | } |