beanstalkd to other host

This commit is contained in:
virus 2021-01-28 13:34:41 +01:00
parent 1a872694fb
commit eea28e6f12
2 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,7 @@ const Jackd = require('jackd');
const beanstalkd = new Jackd();
async function foo() {
// get all feeds from DB
@ -13,7 +14,7 @@ async function foo() {
let count = 0;
await beanstalkd.connect()
await beanstalkd.connect({beanstalkd,11300 })
for (feed of feeds) {
await beanstalkd.put(feed.feed)

View file

@ -10,7 +10,7 @@ const db = new Database('data/bot-node.db'),
const Jackd = require('jackd');
const beanstalkd = new Jackd();
beanstalkd.connect()
beanstalkd.connect({beanstalkd,11300 })
async function foo() {
while (true) {