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

Function writeBatch

src/bridge/replBridgeTransport.ts:280–289  ·  view source on GitHub ↗
(msgs)

Source from the content-addressed store, hash-verified

278 return ccr.writeEvent(msg)
279 },
280 async writeBatch(msgs) {
281 // SerialBatchEventUploader already batches internally (maxBatchSize=100);
282 // sequential enqueue preserves order and the uploader coalesces.
283 // Check closed between writes to avoid sending partial batches after
284 // transport teardown (epoch mismatch, SSE drop).
285 for (const m of msgs) {
286 if (closed) break
287 await ccr.writeEvent(m)
288 }
289 },
290 close() {
291 closed = true
292 ccr.close()

Callers

nothing calls this directly

Calls 1

writeEventMethod · 0.80

Tested by

no test coverage detected