import { createModuleQueue } from "@open-mercato/queue";
const queues = /* @__PURE__ */ new Map();
function getShippingCarrierQueue(queueName) {
  const existing = queues.get(queueName);
  if (existing) return existing;
  const concurrency = Math.max(1, Number.parseInt(process.env.SHIPPING_CARRIER_QUEUE_CONCURRENCY ?? "5", 10) || 5);
  const created = createModuleQueue(queueName, { concurrency });
  queues.set(queueName, created);
  return created;
}
export {
  getShippingCarrierQueue
};
//# sourceMappingURL=queue.js.map
