qualiteer/lib/rabbit/rabbit-workers.js

18 lines
458 B
JavaScript
Raw Normal View History

2022-05-05 20:30:24 +00:00
import Rabbiteer from "rabbiteer";
2022-07-12 21:26:36 +00:00
import buildWorkers from "./workers/index.js";
2022-05-05 20:30:24 +00:00
// Pull Environment Variables
const { RABBIT_HOST: host, RABBIT_USER: user, RABBIT_PASS: pass } = process.env;
// Rabbit Config
const rabbitConfig = {
host: host ?? "localhost",
user: user ?? "rabbit",
pass: pass ?? "rabbit",
};
2022-07-12 21:26:36 +00:00
const buildRabbiteer = (skio) =>
new Rabbiteer(null, buildWorkers(skio), { autoRabbit: rabbitConfig });
2022-07-12 02:44:44 +00:00
2022-07-12 21:26:36 +00:00
export default buildRabbiteer;