(msgs)
| 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() |
nothing calls this directly
no test coverage detected