func newBatch(capacity int) *batch {
	return &batch{
		capacity: capacity,
	}
}
newBatch returns a new batch
package agent
import (
	"errors"
	"github.com/odpf/meteor/models"
)
type batch struct {
	data     []models.Record
	capacity int
}