const batches = new Map();
export function putBatch(accountId, batch) {
    batches.set(accountId, batch);
}
export function takeBatch(accountId) {
    const b = batches.get(accountId);
    if (!b)
        return null;
    batches.delete(accountId);
    return b;
}
export function peekBatch(accountId) {
    return batches.get(accountId) ?? null;
}
//# sourceMappingURL=ingest-batch.js.map