maybe pull this out into something like `func deliverBatch(batch *Batch)`. Then you'd just call `go deliverBatch(batch)` here.